mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
Merge pull request #3287 from dgarske/sp_mask
Fix for wrong cast type and added "U" and "UL".
This commit is contained in:
@@ -108,9 +108,9 @@ This library provides single precision (SP) integer math functions.
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SP_WORD_SIZE == 32
|
#if SP_WORD_SIZE == 32
|
||||||
#define SP_MASK ((sp_digit)0xffffffff)
|
#define SP_MASK ((sp_int_digit)0xffffffffU)
|
||||||
#elif SP_WORD_SIZE == 64
|
#elif SP_WORD_SIZE == 64
|
||||||
#define SP_MASK ((sp_digit)0xffffffffffffffff)
|
#define SP_MASK ((sp_int_digit)0xffffffffffffffffUL)
|
||||||
#else
|
#else
|
||||||
#error Word size not defined
|
#error Word size not defined
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user