build: avoid a new -Wformat-induced warning
authorJim Meyering <meyering@redhat.com>
Mon, 17 May 2010 07:09:28 +0000 (09:09 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 17 May 2010 07:09:28 +0000 (09:09 +0200)
* src/sort.c (mark_key): Add a cast-to-int of a printf field width,
to placate -Wformat.

src/sort.c

index e099640..8a9309a 100644 (file)
@@ -2122,7 +2122,7 @@ count_tabs (char const *text, const size_t len)
 static void
 mark_key (size_t offset, size_t width)
 {
-  printf ("%*s", offset, "");
+  printf ("%*s", (int) offset, "");
 
   if (!width)
     printf (_("^ no match for key\n"));