Skip to content

Commit a49a3e0

Browse files
committed
Nit: use EXPECTED
1 parent 5bb1d3c commit a49a3e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ static void ZEND_FASTCALL zend_hash_do_resize(HashTable *ht)
11671167

11681168
if (ht->nNumUsed > ht->nNumOfElements + (ht->nNumOfElements >> 5)) { /* additional term is there to amortize the cost of compaction */
11691169
zend_hash_rehash(ht);
1170-
} else if (ht->nTableSize < HT_MAX_SIZE) { /* Let's double the table size */
1170+
} else if (EXPECTED(ht->nTableSize < HT_MAX_SIZE)) { /* Let's double the table size */
11711171
void *new_data, *old_data = HT_GET_DATA_ADDR(ht);
11721172
uint32_t nSize = ht->nTableSize + ht->nTableSize;
11731173
if (nSize < HT_MIN_SIZE_UNPACKED) {

0 commit comments

Comments
 (0)