[PATCH] string/stratcliff.c: Replace int with size_t [BZ #21982]
Joseph Myers
joseph@codesourcery.com
Mon Aug 21 13:25:00 GMT 2017
On Sun, 20 Aug 2017, H.J. Lu wrote:
> @@ -101,7 +101,7 @@ do_test (void)
>
> if (STRLEN (&adr[outer]) != (size_t) (inner - outer))
> {
> - printf ("%s flunked for outer = %d, inner = %d\n",
> + printf ("%s flunked for outer = %Zd, inner = %Zd\n",
I don't think we should be using legacy %Z in any new code. Use C99 %zu
for size_t (%zd only if the argument is the corresponding signed type
rather than size_t itself).
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list