From 97c89dd07236e27976651030f97610d71109d2fd Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Wed, 6 Oct 2021 20:04:39 +0200 Subject: [PATCH] #9 --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 164764dc0..d14f7d2fc 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -52550,7 +52550,7 @@ int wolfSSL_BN_set_word(WOLFSSL_BIGNUM* bn, unsigned long w) } static WOLFSSL_BN_ULONG wolfSSL_BN_get_word_1(mp_int *mp) { -#if DIGIT_BIT == (SIZEOF_LONG * 8) +#if DIGIT_BIT >= (SIZEOF_LONG * CHAR_BIT) return (WOLFSSL_BN_ULONG)mp->dp[0]; #else WOLFSSL_BN_ULONG ret = 0UL;