From eca200d7cf161add4f63adc96aeca6ce3b34c39c Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Wed, 20 Sep 2017 15:02:52 +0200 Subject: [PATCH] fix mp_cmp() and mp_cmp_mag() API --- bn_mp_cmp.c | 2 +- bn_mp_cmp_mag.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bn_mp_cmp.c b/bn_mp_cmp.c index a505746..a33d483 100644 --- a/bn_mp_cmp.c +++ b/bn_mp_cmp.c @@ -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) { diff --git a/bn_mp_cmp_mag.c b/bn_mp_cmp_mag.c index 0066ca0..e2c723f 100644 --- a/bn_mp_cmp_mag.c +++ b/bn_mp_cmp_mag.c @@ -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;