summaryrefslogtreecommitdiff
path: root/test/bioprinttest.c
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2019-03-06 12:57:09 +1000
committerRichard Levitte <levitte@openssl.org>2019-03-11 14:45:18 +0100
commit98f29466dc1ed7f80b9b8750309a41b5a1150d25 (patch)
treecf2d29ebbf54b02dd6b9b920db80aab3e636cdda /test/bioprinttest.c
parent2a6a56073ce2ccac3e8c83b5434c6472ab6354e4 (diff)
downloadopenssl-new-98f29466dc1ed7f80b9b8750309a41b5a1150d25.tar.gz
fix truncation of integers on 32bit AIX
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8417)
Diffstat (limited to 'test/bioprinttest.c')
-rw-r--r--test/bioprinttest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/bioprinttest.c b/test/bioprinttest.c
index 97151cdf10..14f0bfe52d 100644
--- a/test/bioprinttest.c
+++ b/test/bioprinttest.c
@@ -146,14 +146,14 @@ typedef struct j_data_st {
} j_data;
static j_data jf_data[] = {
- { 0xffffffffffffffffU, "%ju", "18446744073709551615" },
- { 0xffffffffffffffffU, "%jx", "ffffffffffffffff" },
- { 0x8000000000000000U, "%ju", "9223372036854775808" },
+ { 0xffffffffffffffffULL, "%ju", "18446744073709551615" },
+ { 0xffffffffffffffffULL, "%jx", "ffffffffffffffff" },
+ { 0x8000000000000000ULL, "%ju", "9223372036854775808" },
/*
* These tests imply two's-complement, but it's the only binary
* representation we support, see test/sanitytest.c...
*/
- { 0x8000000000000000U, "%ji", "-9223372036854775808" },
+ { 0x8000000000000000ULL, "%ji", "-9223372036854775808" },
};
static int test_j(int i)