mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Fix for wolfcrypt/src/sp_int.c:2720:34: error: left shift count >= width of type
with mingw64.
This commit is contained in:
@ -2717,7 +2717,7 @@ int sp_count_bits(const sp_int* a)
|
|||||||
r *= SP_WORD_SIZE;
|
r *= SP_WORD_SIZE;
|
||||||
if (d > SP_HALF_MAX) {
|
if (d > SP_HALF_MAX) {
|
||||||
r += SP_WORD_SIZE;
|
r += SP_WORD_SIZE;
|
||||||
while ((d & (1UL << (SP_WORD_SIZE - 1))) == 0) {
|
while ((d & ((sp_digit)1 << (SP_WORD_SIZE - 1))) == 0) {
|
||||||
r--;
|
r--;
|
||||||
d <<= 1;
|
d <<= 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user