]> granicus.if.org Git - php/commitdiff
Fixed typo
authorIlia Alshanetsky <iliaa@php.net>
Mon, 11 Dec 2006 15:59:41 +0000 (15:59 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 11 Dec 2006 15:59:41 +0000 (15:59 +0000)
Zend/zend_operators.c

index 52f7680a23315dd998d3eec6f09e1ac795c6f5cd..7559f2b67af752400eafec8c4cb4399ff55c879f 100644 (file)
@@ -306,7 +306,7 @@ ZEND_API void convert_scalar_to_number(zval *op TSRMLS_DC)
 
 ZEND_API void convert_to_long(zval *op)
 {
-       if ((op)->type == IS_LONG) {
+       if ((op)->type != IS_LONG) {
                convert_to_long_base(op, 10);
        }
 }