From b3e89c37e576543ed212191b5769371e3ce58e95 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Wed, 5 Nov 2025 11:40:47 +0000 Subject: 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@ --- src/regress/lib/libcrypto/bn/bn_print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 @@ -/* $OpenBSD: bn_print.c,v 1.5 2023/07/27 06:41:39 tb Exp $ */ +/* $OpenBSD: bn_print.c,v 1.6 2025/11/05 11:40:47 jsing Exp $ */ /* * Copyright (c) 2023 Theo Buehler @@ -51,7 +51,7 @@ const struct print_test { .desc = "minus one", .want = " mana mana -1 (-0x1)\n", }, -#ifdef _LP64 +#if BN_BYTES == 8 { .desc = "largest word", .want = " mana mana 18446744073709551615 " -- cgit v1.2.3-55-g6feb