altos/test: Fix printf format for int64 arithmetic test
authorKeith Packard <keithp@keithp.com>
Sun, 23 Jul 2017 23:46:24 +0000 (16:46 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 23 Jul 2017 23:46:24 +0000 (16:46 -0700)
Use 'long long' and %lld for 64-bit values when printing.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/test/ao_int64_test.c

index 07538ee0185010fc1095cd67ba60780fff02b6ee..d329f67b5ff407498b0992fa5e5bb8d85639ba77 100644 (file)
@@ -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)