diff options
author | Anatol Belski <ab@php.net> | 2014-10-29 11:39:54 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-10-29 15:30:09 +0100 |
commit | 3a6db1e77a166914f4693bab274d1dbfecb5231b (patch) | |
tree | ad17359c01226bcb3374601bc1794747f53cf355 /ext/spl/spl_heap.c | |
parent | e888f3e4de511faf65924eba7ac92bb9d02f32b5 (diff) | |
download | php-git-3a6db1e77a166914f4693bab274d1dbfecb5231b.tar.gz |
fix datatype mismatch
Diffstat (limited to 'ext/spl/spl_heap.c')
-rw-r--r-- | ext/spl/spl_heap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/spl/spl_heap.c b/ext/spl/spl_heap.c index d29150c1d6..b9f404ab11 100644 --- a/ext/spl/spl_heap.c +++ b/ext/spl/spl_heap.c @@ -160,12 +160,12 @@ static int spl_ptr_heap_zval_max_cmp(zval *a, zval *b, zval *object TSRMLS_DC) { /* exception or call failure */ return 0; } - return lval; + return lval > 0 ? 1 : -1; } } compare_function(&result, a, b TSRMLS_CC); - return Z_LVAL(result); + return (int)Z_LVAL(result); } /* }}} */ @@ -184,12 +184,12 @@ static int spl_ptr_heap_zval_min_cmp(zval *a, zval *b, zval *object TSRMLS_DC) { /* exception or call failure */ return 0; } - return lval; + return lval > 0 ? 1 : -1; } } compare_function(&result, b, a TSRMLS_CC); - return Z_LVAL(result); + return (int)Z_LVAL(result); } /* }}} */ @@ -215,12 +215,12 @@ static int spl_ptr_pqueue_zval_cmp(zval *a, zval *b, zval *object TSRMLS_DC) { / /* exception or call failure */ return 0; } - return lval; + return lval > 0 ? 1 : -1; } } compare_function(&result, a_priority_p, b_priority_p TSRMLS_CC); - return Z_LVAL(result); + return (int)Z_LVAL(result); } /* }}} */ |