1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-05-28 23:34:49 -05:00

Fix a casting bug with the length-independent sshbn code.

[originally from svn r3760]
This commit is contained in:
Simon Tatham 2004-01-22 18:37:48 +00:00
parent 98d735fde4
commit ee72bf04df

View File

@ -133,7 +133,7 @@ static void internal_add_shifted(BignumInt *number,
int bshift = shift % BIGNUM_INT_BITS;
BignumDblInt addend;
addend = n << bshift;
addend = (BignumDblInt)n << bshift;
while (addend) {
addend += number[word];