mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-26 17:31:38 +00:00
SPHINCS: make integer promotion explicit
This commit is contained in:
parent
2a9d793152
commit
db7843c5eb
@ -68,7 +68,7 @@ static void base_w(unsigned int *output, const size_t out_len,
|
||||
bits += 8;
|
||||
}
|
||||
bits -= SPX_WOTS_LOGW;
|
||||
output[out] = (total >> bits) & (SPX_WOTS_W - 1);
|
||||
output[out] = (unsigned int)((total >> bits) & (SPX_WOTS_W - 1));
|
||||
out++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user