1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Fix bug in Karatsuba multiplication, which affected propagation of a

carry by more than one word. Now the current set of test cases all
pass again.

[originally from svn r9098]
This commit is contained in:
Simon Tatham 2011-02-20 15:06:39 +00:00
parent 01d365b626
commit 260cee498e

View File

@ -386,6 +386,7 @@ static void internal_mul(const BignumInt *a, const BignumInt *b,
carry += c[j];
c[j] = (BignumInt)carry;
carry >>= BIGNUM_INT_BITS;
j--;
}
#ifdef KARA_DEBUG
printf("ab = 0x");