Fix equality predicate.

This commit is contained in:
Dag-Erling Smørgrav 2015-01-07 19:23:38 +00:00 committed by des
parent d0fb2359f1
commit a33f58cad7

View file

@ -99,6 +99,6 @@ int
mpi_eq(cryb_mpi *A, cryb_mpi *B)
{
return (A->neg == B->neg && A->msb != B->msb &&
return (A->neg == B->neg && A->msb == B->msb &&
memcmp(A->words, B->words, (A->msb + 31) / 32) == 0);
}