fix mp_cmp() and mp_cmp_mag() API

This commit is contained in:
Steffen Jaeckel 2017-09-20 15:02:52 +02:00
parent 41de585524
commit eca200d7cf
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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;