mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 11:31:00 -05:00
Fix a casting bug with the length-independent sshbn code.
[originally from svn r3760]
This commit is contained in:
2
sshbn.c
2
sshbn.c
@ -133,7 +133,7 @@ static void internal_add_shifted(BignumInt *number,
|
|||||||
int bshift = shift % BIGNUM_INT_BITS;
|
int bshift = shift % BIGNUM_INT_BITS;
|
||||||
BignumDblInt addend;
|
BignumDblInt addend;
|
||||||
|
|
||||||
addend = n << bshift;
|
addend = (BignumDblInt)n << bshift;
|
||||||
|
|
||||||
while (addend) {
|
while (addend) {
|
||||||
addend += number[word];
|
addend += number[word];
|
||||||
|
Reference in New Issue
Block a user