diff options
author | Viktor Dukhovni <openssl-users@dukhovni.org> | 2016-01-28 00:10:11 -0500 |
---|---|---|
committer | Viktor Dukhovni <openssl-users@dukhovni.org> | 2016-01-28 06:36:55 -0500 |
commit | 7eba4e62077484aebec010157424287f1963c88f (patch) | |
tree | 5583d5933d0084b49ffd896414ee884e6320ef41 /crypto/bn/bn_prime.pl | |
parent | 3538c7da3d53dca70be5f507376299843046d2b7 (diff) | |
download | openssl-new-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.pl')
-rw-r--r-- | crypto/bn/bn_prime.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/bn/bn_prime.pl b/crypto/bn/bn_prime.pl index add6ffb9d0..3a5f064faa 100644 --- a/crypto/bn/bn_prime.pl +++ b/crypto/bn/bn_prime.pl @@ -76,8 +76,9 @@ loop: while ($#primes < $num-1) { } print "typedef unsigned short prime_t;\n"; +printf "# define NUMPRIMES %d\n\n", $num; -print "static const prime_t primes[] = {"; +printf "static const prime_t primes[%d] = {\n", $num; for (my $i = 0; $i <= $#primes; $i++) { printf "\n " if ($i % 8) == 0; printf "%4d, ", $primes[$i]; |