fix mp_cmp() and mp_cmp_mag() API
This commit is contained in:
parent
41de585524
commit
eca200d7cf
@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
/* compare two ints (signed)*/
|
||||
int mp_cmp(const mp_int *a, mp_int *b)
|
||||
int mp_cmp(const mp_int *a, const mp_int *b)
|
||||
{
|
||||
/* compare based on sign */
|
||||
if (a->sign != b->sign) {
|
||||
|
@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
/* compare maginitude of two ints (unsigned) */
|
||||
int mp_cmp_mag(const mp_int *a, mp_int *b)
|
||||
int mp_cmp_mag(const mp_int *a, const mp_int *b)
|
||||
{
|
||||
int n;
|
||||
mp_digit *tmpa, *tmpb;
|
||||
|
Loading…
x
Reference in New Issue
Block a user