Constify prime numbers.
This commit is contained in:
parent
d3cef1d91e
commit
88579aa572
@ -419,9 +419,9 @@ hashdestroy(void *vhashtbl, struct malloc_type *type, u_long hashmask)
|
||||
free(hashtbl, type);
|
||||
}
|
||||
|
||||
static int primes[] = { 1, 13, 31, 61, 127, 251, 509, 761, 1021, 1531, 2039,
|
||||
2557, 3067, 3583, 4093, 4603, 5119, 5623, 6143, 6653,
|
||||
7159, 7673, 8191, 12281, 16381, 24571, 32749 };
|
||||
static const int primes[] = { 1, 13, 31, 61, 127, 251, 509, 761, 1021, 1531,
|
||||
2039, 2557, 3067, 3583, 4093, 4603, 5119, 5623, 6143,
|
||||
6653, 7159, 7673, 8191, 12281, 16381, 24571, 32749 };
|
||||
#define NPRIMES (sizeof(primes) / sizeof(primes[0]))
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user