We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c3518e4 + f0041cd commit 7ba6f83Copy full SHA for 7ba6f83
1 file changed
wolfcrypt/src/sp_int.c
@@ -8025,8 +8025,8 @@ static void sp_clamp_ct(sp_int* a)
8025
(sp_int_digit)((sp_int_sdigit)(negVal & minusOne) >>
8026
(SP_WORD_SIZE - 1));
8027
#else
8028
- sp_int_digit zeroMask =
8029
- (sp_int_digit)((((sp_int_sword)a->dp[i]) - 1) >> SP_WORD_SIZE);
+ sp_size_t zeroMask =
+ (sp_size_t)((((sp_int_sword)a->dp[i]) - 1) >> SP_WORD_SIZE);
8030
#endif
8031
mask &= (sp_size_t)zeroMask;
8032
used = (sp_size_t)(used + mask);
0 commit comments