From: Dmitry Stogov Date: Wed, 10 Jan 2018 09:37:13 +0000 (+0300) Subject: Added expectation X-Git-Tag: php-7.3.0alpha1~671 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20a1124f6302330b3123ae202deb2deb62c9a3e2;p=php Added expectation --- diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h index 0b899fb727..50529cea3b 100644 --- a/Zend/zend_hash.h +++ b/Zend/zend_hash.h @@ -932,7 +932,7 @@ static zend_always_inline void *zend_hash_get_current_data_ptr_ex(HashTable *ht, uint32_t j = HT_IDX_TO_HASH(_idx - 1); \ uint32_t nIndex = _p->h | __ht->nTableMask; \ uint32_t i = HT_HASH(__ht, nIndex); \ - if (j != i) { \ + if (UNEXPECTED(j != i)) { \ Bucket *prev = HT_HASH_TO_BUCKET(__ht, i); \ while (Z_NEXT(prev->val) != j) { \ i = Z_NEXT(prev->val); \