aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_prime.h
diff options
context:
space:
mode:
authorViktor Dukhovni <openssl-users@dukhovni.org>2016-01-28 00:10:11 -0500
committerViktor Dukhovni <openssl-users@dukhovni.org>2016-01-28 06:36:55 -0500
commit7eba4e62077484aebec010157424287f1963c88f (patch)
tree5583d5933d0084b49ffd896414ee884e6320ef41 /crypto/bn/bn_prime.h
parent3538c7da3d53dca70be5f507376299843046d2b7 (diff)
downloadopenssl-7eba4e62077484aebec010157424287f1963c88f.tar.gz
Restore NUMPRIMES as a numeric literal
This fixes clang compilation problem with size_t NUMPRIMES and int loop counters. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/bn/bn_prime.h')
-rw-r--r--crypto/bn/bn_prime.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/bn/bn_prime.h b/crypto/bn/bn_prime.h
index d1fbcd1021..6f6949cd7a 100644
--- a/crypto/bn/bn_prime.h
+++ b/crypto/bn/bn_prime.h
@@ -57,7 +57,10 @@
*/
typedef unsigned short prime_t;
-static const prime_t primes[] = {
+# define NUMPRIMES 2048
+
+static const prime_t primes[2048] = {
+
2, 3, 5, 7, 11, 13, 17, 19,
23, 29, 31, 37, 41, 43, 47, 53,
59, 61, 67, 71, 73, 79, 83, 89,