projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
198a3d4
)
altos/test: Fix printf format for int64 arithmetic test
author
Keith Packard
<keithp@keithp.com>
Sun, 23 Jul 2017 23:46:24 +0000
(16:46 -0700)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/src/test/ao_int64_test.c
b/src/test/ao_int64_test.c
index 07538ee0185010fc1095cd67ba60780fff02b6ee..d329f67b5ff407498b0992fa5e5bb8d85639ba77 100644
(file)
--- 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)