diff options
author | Andrei Zmievski <andrei@php.net> | 2000-05-18 01:53:41 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2000-05-18 01:53:41 +0000 |
commit | 3df1e68fe95a3588bbdccf2899c594ef20b89793 (patch) | |
tree | 8b679919f4b12a14717e0749f27d1036f3da20ea /Zend/zend_operators.c | |
parent | a5b03338f8b304a3fa817da29967a6e7e9711ea6 (diff) | |
download | php-git-3df1e68fe95a3588bbdccf2899c594ef20b89793.tar.gz |
Update for sort functions - user can now specify sort type.
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r-- | Zend/zend_operators.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 8707f3f29b..d8a1d2efcc 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -988,7 +988,7 @@ ZEND_API int numeric_compare_function(zval *result, zval *op1, zval *op2) convert_to_double(&op1_copy); convert_to_double(&op2_copy); - result->value.lval = NORMALIZE_BOOL(op2_copy.value.dval-op1_copy.value.dval); + result->value.lval = NORMALIZE_BOOL(op1_copy.value.dval-op2_copy.value.dval); result->type = IS_LONG; return SUCCESS; |