]> granicus.if.org Git - gc/commitdiff
Eliminate 'printf format specifier mismatch' compiler warning (tools)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 13 Oct 2016 08:44:52 +0000 (11:44 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 1 Nov 2016 23:33:19 +0000 (02:33 +0300)
* tools/setjmp_t.c (main): Use %lu (instead of %ld) printf format
specifier for unsigned long value.

tools/setjmp_t.c

index e66d7f6027fa5bee411c47b6f321ac4da913b36d..328cd92f697b6cbc836baec7226c38505a7004eb 100644 (file)
@@ -90,7 +90,7 @@ int main(void)
     printf("Note that this may vary between machines of ostensibly\n");
     printf("the same architecture (e.g. Sun 3/50s and 3/80s).\n");
     printf("On many machines the value is not fixed.\n");
-    printf("A good guess for ALIGNMENT on this machine is %ld.\n",
+    printf("A good guess for ALIGNMENT on this machine is %lu.\n",
            (unsigned long)((word)(&(a.a_b)) - (word)(&a)));
 
     printf("The following is a very dubious test of one root marking"