mirror of
https://github.com/cryb-to/cryb-to.git
synced 2025-01-17 17:21:16 +00:00
Fix equality predicate.
This commit is contained in:
parent
d0fb2359f1
commit
a33f58cad7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue