Skip to content

Commit 3ee1bd1

Browse files
committed
ext/opcache/zend_accelerator_hash: make prime_numbers const
1 parent 3ed5264 commit 3ee1bd1

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
@@ -25,9 +25,9 @@
2525
#include "zend_shared_alloc.h"
2626

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

3232
void zend_accel_hash_clean(zend_accel_hash *accel_hash)
3333
{

0 commit comments

Comments
 (0)