(test): Use %td in printf for ptrdiff_t.
authorAndreas Jaeger <aj@suse.de>
Mon, 30 Sep 2002 06:53:25 +0000 (06:53 +0000)
committerAndreas Jaeger <aj@suse.de>
Mon, 30 Sep 2002 06:53:25 +0000 (06:53 +0000)
iconvdata/tst-e2big.c

index f471716..8c4d273 100644 (file)
@@ -67,12 +67,12 @@ test (const char *encoding, char *inbuf, size_t inbufsize, size_t outbufsize)
 
   if (!empty_input && empty_output)
     {
-      fprintf (stderr, "%s: ate %d input bytes\n", encoding, inptr - inbuf);
+      fprintf (stderr, "%s: ate %td input bytes\n", encoding, inptr - inbuf);
       exit (1);
     }
   if (empty_input && !empty_output)
     {
-      fprintf (stderr, "%s: produced %d output bytes\n",
+      fprintf (stderr, "%s: produced %td output bytes\n",
               encoding, outptr - outbuf);
       exit (1);
     }