From 3b8f3a089728ae9d392e0c4c5d694bace9a07fc6 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Fri, 9 Sep 2022 08:33:30 +1000 Subject: [PATCH] SP int: default to 16 bit word size when NO_64BIT defined --- wolfssl/wolfcrypt/sp_int.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/sp_int.h b/wolfssl/wolfcrypt/sp_int.h index 4f774564d..ca91b52e1 100644 --- a/wolfssl/wolfcrypt/sp_int.h +++ b/wolfssl/wolfcrypt/sp_int.h @@ -213,7 +213,9 @@ extern "C" { * with compiler. */ #ifndef SP_WORD_SIZE - #if defined(NO_64BIT) || !defined(HAVE___UINT128_T) + #ifdef NO_64BIT + #define SP_WORD_SIZE 16 + #elif !defined(HAVE___UINT128_T) #define SP_WORD_SIZE 32 #else #define SP_WORD_SIZE 64