diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-07-07 07:04:25 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-07-07 07:04:25 +0000 |
commit | 775b243805a491c1abf4185994b28629f57eb2c8 (patch) | |
tree | 8c279dea57334e55c58be6b89bc799aabeae1cda /lib/libcrypto | |
parent | 27bf28f72ea88f1ab622f04374f60e5d2ac38010 (diff) |
Use an unsigned long long and corresponding formats
Fixes build on 32 bit.
Reported by claudio
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/bn/bn_print.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/bn/bn_print.c b/lib/libcrypto/bn/bn_print.c index 18984d7d4f1..84b82039683 100644 --- a/lib/libcrypto/bn/bn_print.c +++ b/lib/libcrypto/bn/bn_print.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_print.c,v 1.41 2023/07/07 06:41:59 tb Exp $ */ +/* $OpenBSD: bn_print.c,v 1.42 2023/07/07 07:04:24 tb Exp $ */ /* * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> @@ -41,7 +41,7 @@ bn_print_zero(BIO *bio, const BIGNUM *bn) static int bn_print_word(BIO *bio, const BIGNUM *bn) { - BN_ULONG word; + unsigned long long word; const char *neg = ""; if (BN_is_zero(bn) || BN_num_bytes(bn) > BN_BYTES) @@ -51,7 +51,7 @@ bn_print_word(BIO *bio, const BIGNUM *bn) neg = "-"; word = BN_get_word(bn); - if (BIO_printf(bio, " %s%lu (%s0x%lx)\n", neg, word, neg, word) <= 0) + if (BIO_printf(bio, " %s%llu (%s0x%llx)\n", neg, word, neg, word) <= 0) return 0; return 1; |