From 4430c6bc5f150697c864e038b3b9a23be9489e75 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Sun, 11 Oct 2015 15:54:43 +0200 Subject: [PATCH] array declaration with its size --- tommath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tommath.h b/tommath.h index 0097b5e..1391d95 100644 --- a/tommath.h +++ b/tommath.h @@ -504,7 +504,7 @@ int mp_exptmod(mp_int *a, mp_int *b, mp_int *c, mp_int *d); #endif /* table of first PRIME_SIZE primes */ -extern const mp_digit ltm_prime_tab[]; +extern const mp_digit ltm_prime_tab[PRIME_SIZE]; /* result=1 if a is divisible by one of the first PRIME_SIZE primes */ int mp_prime_is_divisible(mp_int *a, int *result);