diff options
author | Rich Salz <rsalz@openssl.org> | 2017-08-15 01:59:54 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-08-15 01:59:54 +0200 |
commit | c4d2e483a39176a476c56d35879423fe6e33c0cd (patch) | |
tree | 430bdc5bdf856be48a01a64dba0aa16771f900e6 /test | |
parent | Doc fixes (diff) | |
download | openssl-c4d2e483a39176a476c56d35879423fe6e33c0cd.tar.xz openssl-c4d2e483a39176a476c56d35879423fe6e33c0cd.zip |
Add some casts for %j
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/4160)
Diffstat (limited to 'test')
-rw-r--r-- | test/constant_time_test.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/constant_time_test.c b/test/constant_time_test.c index 8575194e90..ef391b9d34 100644 --- a/test/constant_time_test.c +++ b/test/constant_time_test.c @@ -66,11 +66,11 @@ static int test_binary_op_64(uint64_t (*op)(uint64_t a, uint64_t b), if (is_true && c != CONSTTIME_TRUE_64) { TEST_error("TRUE %s op failed", op_name); - BIO_printf(bio_err, "a=%jx b=%jx\n", a, b); + BIO_printf(bio_err, "a=%jx b=%jx\n", (uintmax_t)a, (uintmax_t)b); return 0; } else if (!is_true && c != CONSTTIME_FALSE_64) { TEST_error("FALSE %s op failed", op_name); - BIO_printf(bio_err, "a=%jx b=%jx\n", a, b); + BIO_printf(bio_err, "a=%jx b=%jx\n", (uintmax_t)a, (uintmax_t)b); return 0; } return 1; @@ -137,12 +137,14 @@ static int test_select_64(uint64_t a, uint64_t b) if (selected != a) { TEST_error("test_select_64 TRUE failed"); - BIO_printf(bio_err, "a=%jx b=%jx got %jx wanted a\n", a, b, selected); + BIO_printf(bio_err, "a=%jx b=%jx got %jx wanted a\n", + (uintmax_t)a, (uintmax_t)b, (uintmax_t)selected); return 0; } selected = constant_time_select_64(CONSTTIME_FALSE_64, a, b); if (selected != b) { - BIO_printf(bio_err, "a=%jx b=%jx got %jx wanted b\n", a, b, selected); + BIO_printf(bio_err, "a=%jx b=%jx got %jx wanted b\n", + (uintmax_t)a, (uintmax_t)b, (uintmax_t)selected); return 0; } return 1; |