Skip to content

Commit 1a6c20a

Browse files
committed
ext/opcache/zend_accelerator_hash: make prime_numbers const
1 parent 7473b86 commit 1a6c20a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/zend_accelerator_hash.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
#include "zend_shared_alloc.h"
2424

2525
/* Generated on an Octa-ALPHA 300MHz CPU & 2.5GB RAM monster */
26-
static uint32_t prime_numbers[] =
26+
static const uint32_t prime_numbers[] =
2727
{5, 11, 19, 53, 107, 223, 463, 983, 1979, 3907, 7963, 16229, 32531, 65407, 130987, 262237, 524521, 1048793 };
28-
static uint32_t num_prime_numbers = sizeof(prime_numbers) / sizeof(uint32_t);
28+
static const uint32_t num_prime_numbers = sizeof(prime_numbers) / sizeof(uint32_t);
2929

3030
void zend_accel_hash_clean(zend_accel_hash *accel_hash)
3131
{

0 commit comments

Comments
 (0)