From f68eee07881fbc015a4af6c8566512376c991210 Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 9 Sep 2020 16:35:05 -0700 Subject: [PATCH] Fix for wrong cast type and added "U" and "UL". --- wolfssl/wolfcrypt/sp_int.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfssl/wolfcrypt/sp_int.h b/wolfssl/wolfcrypt/sp_int.h index 9d3e124cb..7d546e12c 100644 --- a/wolfssl/wolfcrypt/sp_int.h +++ b/wolfssl/wolfcrypt/sp_int.h @@ -108,9 +108,9 @@ This library provides single precision (SP) integer math functions. #endif #if SP_WORD_SIZE == 32 - #define SP_MASK ((sp_digit)0xffffffff) + #define SP_MASK ((sp_int_digit)0xffffffffU) #elif SP_WORD_SIZE == 64 - #define SP_MASK ((sp_digit)0xffffffffffffffff) + #define SP_MASK ((sp_int_digit)0xffffffffffffffffUL) #else #error Word size not defined #endif