Skip to content

Commit 67a728f

Browse files
committed
use correct pointer in the math
1 parent d510255 commit 67a728f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ static int php_array_key_compare_string(const void *a, const void *b) /* {{{ */
268268
l2 = s->key->len;
269269
} else {
270270
s2 = zend_print_long_to_buf(buf2 + sizeof(buf2) - 1, s->h);
271-
l2 = buf2 + sizeof(buf2) - 1 - s1;
271+
l2 = buf2 + sizeof(buf2) - 1 - s2;
272272
}
273273
return zend_binary_strcmp(s1, l1, s2, l2);
274274
}

0 commit comments

Comments
 (0)