summaryrefslogtreecommitdiff
path: root/ext/opcache/zend_persist_calc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/zend_persist_calc.c')
-rw-r--r--ext/opcache/zend_persist_calc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/opcache/zend_persist_calc.c b/ext/opcache/zend_persist_calc.c
index 5217c2ca9e..bad7d70cc8 100644
--- a/ext/opcache/zend_persist_calc.c
+++ b/ext/opcache/zend_persist_calc.c
@@ -65,8 +65,8 @@ static void zend_hash_persist_calc(HashTable *ht, void (*pPersistElement)(zval *
while (hash_size >> 1 > ht->nNumUsed) {
hash_size >>= 1;
}
- if (hash_size < -HT_MIN_MASK) {
- hash_size = -HT_MIN_MASK;
+ if (hash_size < HT_MIN_SIZE) {
+ hash_size = HT_MIN_SIZE;
}
ADD_SIZE(hash_size * sizeof(uint32_t) + ht->nNumUsed * sizeof(Bucket));
} else {