diff options
author | Rich Salz <rsalz@openssl.org> | 2017-08-15 09:42:38 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-08-15 09:42:38 -0400 |
commit | 12997aa984cf0e5def1045fd22d7b0675caaa0a1 (patch) | |
tree | a4f37fb93d0d789dd9b9809a885d1cafd6a36935 /test | |
parent | b158049cbdff7efa9afd93eb55bb7df95c0f385f (diff) | |
download | openssl-12997aa984cf0e5def1045fd22d7b0675caaa0a1.tar.gz |
Revert "Add some casts for %j"
This reverts commit c4d2e483a39176a476c56d35879423fe6e33c0cd.
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, 4 insertions, 6 deletions
diff --git a/test/constant_time_test.c b/test/constant_time_test.c index ef391b9d34..8575194e90 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", (uintmax_t)a, (uintmax_t)b); + BIO_printf(bio_err, "a=%jx b=%jx\n", a, 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", (uintmax_t)a, (uintmax_t)b); + BIO_printf(bio_err, "a=%jx b=%jx\n", a, b); return 0; } return 1; @@ -137,14 +137,12 @@ 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", - (uintmax_t)a, (uintmax_t)b, (uintmax_t)selected); + BIO_printf(bio_err, "a=%jx b=%jx got %jx wanted a\n", a, b, 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", - (uintmax_t)a, (uintmax_t)b, (uintmax_t)selected); + BIO_printf(bio_err, "a=%jx b=%jx got %jx wanted b\n", a, b, selected); return 0; } return 1; |