Skip to content

Commit 42db690

Browse files
committed
Removed impossible condition
1 parent d02e260 commit 42db690

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Zend/zend_hash.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -730,9 +730,6 @@ static zend_always_inline zval *_zend_hash_index_add_or_update_i(HashTable *ht,
730730
ht->pDestructor(&p->val);
731731
}
732732
ZVAL_COPY_VALUE(&p->val, pData);
733-
if ((zend_long)h >= (zend_long)ht->nNextFreeElement) {
734-
ht->nNextFreeElement = h < ZEND_LONG_MAX ? h + 1 : ZEND_LONG_MAX;
735-
}
736733
return &p->val;
737734
} else { /* we have to keep the order :( */
738735
goto convert_to_hash;

0 commit comments

Comments
 (0)