mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
SP int SP_WORD_SIZE=32: cast down explicitly
This commit is contained in:
@ -11991,7 +11991,8 @@ static int _sp_mont_red(sp_int* a, sp_int* m, sp_int_digit mp)
|
|||||||
bits = SP_WORD_SIZE;
|
bits = SP_WORD_SIZE;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sp_int_digit mask = (1UL << (bits & (SP_WORD_SIZE - 1))) - 1;
|
sp_int_digit mask = (sp_int_digit)
|
||||||
|
((1UL << (bits & (SP_WORD_SIZE - 1))) - 1);
|
||||||
sp_int_word o = 0;
|
sp_int_word o = 0;
|
||||||
w = 0;
|
w = 0;
|
||||||
for (i = 0; i < m->used; i++) {
|
for (i = 0; i < m->used; i++) {
|
||||||
|
Reference in New Issue
Block a user