Merge pull request #3287 from dgarske/sp_mask

Fix for wrong cast type and added "U" and "UL".
This commit is contained in:
Sean Parkinson 2020-09-11 08:14:13 +10:00 committed by GitHub
commit 5010572856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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