From: Keith Packard Date: Sun, 23 Jul 2017 23:46:24 +0000 (-0700) Subject: altos/test: Fix printf format for int64 arithmetic test X-Git-Tag: 1.8~11 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=9eaf917707287af57c2dadfc82d6d415b0964329 altos/test: Fix printf format for int64 arithmetic test Use 'long long' and %lld for 64-bit values when printing. Signed-off-by: Keith Packard --- diff --git a/src/test/ao_int64_test.c b/src/test/ao_int64_test.c index 07538ee0..d329f67b 100644 --- a/src/test/ao_int64_test.c +++ b/src/test/ao_int64_test.c @@ -34,7 +34,7 @@ int errors; c = ao_cast64(&ao_r); \ if (c != r) { \ printf ("trial %4d: %lld " #func mod " %lld = %lld (should be %lld)\n", \ - trial, (int64_t) (a), (int64_t) b, c, r); \ + trial, (long long) (a), (long long) b, (long long) c, (long long) r); \ ++errors; \ } \ } while (0)