Fixed bug in mpi_add_abs with adding a small number to a large mpi with carry rollover.

(cherry picked from commit 2d319fdfcb)
This commit is contained in:
Paul Bakker 2012-09-16 21:34:26 +00:00
parent badc9bce1c
commit ebee076da6

View file

@ -761,7 +761,7 @@ int mpi_add_abs( mpi *X, const mpi *A, const mpi *B )
p = X->p + i;
}
*p += c; c = ( *p < c ); i++;
*p += c; c = ( *p < c ); i++; p++;
}
cleanup: