]> granicus.if.org Git - php/commitdiff
Fix ZEND_NORMALIZE_BOOL usage
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 2 Jan 2019 08:56:12 +0000 (09:56 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 2 Jan 2019 08:56:40 +0000 (09:56 +0100)
Typo introduced in cdd8368d6f3f000a2e30a6be9976c5539f10fe85.

ext/standard/array.c

index 018fe028fba3fb904324d165bb1493e6f1f3a468..33ea028602ec213b20e89ddee03ed9b510002ad7 100644 (file)
@@ -170,7 +170,7 @@ static int php_array_key_compare(const void *a, const void *b) /* {{{ */
                        }
                }
        }
-       return ZEND_NORMALIZE_BOOL(l1 > l2);
+       return ZEND_NORMALIZE_BOOL(l1 - l2);
 }
 /* }}} */