mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-01 01:10:29 -05:00
Fix a casting bug with the length-independent sshbn code.
[originally from svn r3760]
This commit is contained in:
parent
98d735fde4
commit
ee72bf04df
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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user