Commit 3cf0c188837d465744396c6b637b02efbeee5c32

Francois Perrad 2019-05-17T18:46:47

const pointer

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bn_mp_cmp_mag.c b/bn_mp_cmp_mag.c
index 315a826..f144ea9 100644
--- a/bn_mp_cmp_mag.c
+++ b/bn_mp_cmp_mag.c
@@ -7,7 +7,7 @@
 mp_ord mp_cmp_mag(const mp_int *a, const mp_int *b)
 {
    int     n;
-   mp_digit *tmpa, *tmpb;
+   const mp_digit *tmpa, *tmpb;
 
    /* compare based on # of non-zero digits */
    if (a->used > b->used) {