Skip to content

Commit

Permalink
Move primes to read-only segment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Polyakov committed Feb 16, 2000
1 parent bd44570 commit 8691ff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crypto/bn/bn_prime.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
#else
#define NUMPRIMES 54
#endif
static unsigned int primes[NUMPRIMES]=
static const unsigned int primes[NUMPRIMES]=
{
2, 3, 5, 7, 11, 13, 17, 19,
23, 29, 31, 37, 41, 43, 47, 53,
Expand Down
2 changes: 1 addition & 1 deletion crypto/bn/bn_prime.pl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
printf "#else\n";
printf "#define NUMPRIMES %d\n",$eight;
printf "#endif\n";
print "static unsigned int primes[NUMPRIMES]=\n\t{\n\t";
print "static const unsigned int primes[NUMPRIMES]=\n\t{\n\t";
$init=0;
for ($i=0; $i <= $#primes; $i++)
{
Expand Down

0 comments on commit 8691ff9

Please sign in to comment.