From 9eaf917707287af57c2dadfc82d6d415b0964329 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 23 Jul 2017 16:46:24 -0700 Subject: [PATCH] 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 --- src/test/ao_int64_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2