diff options
| author | Keith Packard <keithp@keithp.com> | 2017-07-23 16:46:24 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-07-23 16:46:24 -0700 | 
| commit | 9eaf917707287af57c2dadfc82d6d415b0964329 (patch) | |
| tree | e2c744127a25e4ab51750e60eba24ee2f89ae07b /src | |
| parent | 198a3d4d5f51de5c0f0413299582479cde4e177f (diff) | |
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 <keithp@keithp.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ao_int64_test.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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) | 
