Skip to content

Commit 48d7b43

Browse files
committed
Optimize
1 parent 0ceb08f commit 48d7b43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ PHP_MSHUTDOWN_FUNCTION(array) /* {{{ */
134134

135135
#define RETURN_STABLE_SORT(a, b, result) do { \
136136
int _result = (result); \
137-
if (_result) { \
137+
if (EXPECTED(_result)) { \
138138
return _result; \
139139
} \
140140
if (Z_EXTRA((a)->val) > Z_EXTRA((b)->val)) { \
@@ -336,7 +336,7 @@ static int php_array_key_compare_string_locale_unstable(Bucket *f, Bucket *s) /*
336336
}
337337
/* }}} */
338338

339-
static int php_array_data_compare_unstable(Bucket *f, Bucket *s) /* {{{ */
339+
static inline int php_array_data_compare_unstable(Bucket *f, Bucket *s) /* {{{ */
340340
{
341341
zval *first = &f->val;
342342
zval *second = &s->val;

0 commit comments

Comments
 (0)