Skip to content

Commit 358a6b4

Browse files
committed
Reorder conditions
1 parent 8b10fcd commit 358a6b4

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
@@ -964,7 +964,7 @@ static zend_always_inline zval *_zend_hash_index_add_or_update_i(HashTable *ht,
964964
IS_CONSISTENT(ht);
965965
HT_ASSERT_RC1(ht);
966966

967-
if (h == ZEND_LONG_MIN && (flag & HASH_ADD_NEXT)) {
967+
if ((flag & HASH_ADD_NEXT) && h == ZEND_LONG_MIN) {
968968
h = 0;
969969
}
970970

0 commit comments

Comments
 (0)