Commit 79d47278bbb68c52cfc7383dc74641433a08f04d

Francois Perrad 2018-12-26T08:08:00

static const variable

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bn_mp_kronecker.c b/bn_mp_kronecker.c
index 7b56e89..477ef00 100644
--- a/bn_mp_kronecker.c
+++ b/bn_mp_kronecker.c
@@ -34,7 +34,7 @@ int mp_kronecker(const mp_int *a, const mp_int *p, int *c)
    int e = MP_OKAY;
    int v, k;
 
-   const int table[8] = {0, 1, 0, -1, 0, -1, 0, 1};
+   static const int table[8] = {0, 1, 0, -1, 0, -1, 0, 1};
 
    if (mp_iszero(p)) {
       if (a->used == 1 && a->dp[0] == 1) {