(test): Use %td in printf for ptrdiff_t.

This commit is contained in:
Andreas Jaeger 2002-09-30 06:53:25 +00:00
parent 45c1700cd9
commit 14bdd76de3

View 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);
}