diff options
| author | jsing <> | 2025-11-05 11:40:47 +0000 |
|---|---|---|
| committer | jsing <> | 2025-11-05 11:40:47 +0000 |
| commit | b3e89c37e576543ed212191b5769371e3ce58e95 (patch) | |
| tree | 86e995a67791fcff7ba087093f0b3debef6dc54b | |
| parent | 73bce59b2aaca7d3ae9dd6087472dbfdca23c83f (diff) | |
| download | openbsd-b3e89c37e576543ed212191b5769371e3ce58e95.tar.gz openbsd-b3e89c37e576543ed212191b5769371e3ce58e95.tar.bz2 openbsd-b3e89c37e576543ed212191b5769371e3ce58e95.zip | |
Avoid the use of _LP64 in libcrypto regress.
What the tests actually care about is the size of a BN_ULONG, hence
condition on BN_BYTES instead.
Discussed with tb@
| -rw-r--r-- | src/regress/lib/libcrypto/bn/bn_print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_print.c b/src/regress/lib/libcrypto/bn/bn_print.c index a3118869fc..d3e1e83464 100644 --- a/src/regress/lib/libcrypto/bn/bn_print.c +++ b/src/regress/lib/libcrypto/bn/bn_print.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_print.c,v 1.5 2023/07/27 06:41:39 tb Exp $ */ | 1 | /* $OpenBSD: bn_print.c,v 1.6 2025/11/05 11:40:47 jsing Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> |
| @@ -51,7 +51,7 @@ const struct print_test { | |||
| 51 | .desc = "minus one", | 51 | .desc = "minus one", |
| 52 | .want = " mana mana -1 (-0x1)\n", | 52 | .want = " mana mana -1 (-0x1)\n", |
| 53 | }, | 53 | }, |
| 54 | #ifdef _LP64 | 54 | #if BN_BYTES == 8 |
| 55 | { | 55 | { |
| 56 | .desc = "largest word", | 56 | .desc = "largest word", |
| 57 | .want = " mana mana 18446744073709551615 " | 57 | .want = " mana mana 18446744073709551615 " |
