]> granicus.if.org Git - php/commitdiff
Kill a warning
authorRasmus Lerdorf <rasmus@php.net>
Sat, 4 Aug 2001 20:52:35 +0000 (20:52 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sat, 4 Aug 2001 20:52:35 +0000 (20:52 +0000)
ext/standard/math.c

index 378c206ff4c87d98827b84aaa0c82937bc7ceb86..720a1fa3a3e4dc278154cdf4ae96609552235f55 100644 (file)
@@ -398,8 +398,8 @@ PHP_FUNCTION(pow)
        zend_get_parameters_ex(ZEND_NUM_ARGS(),&zbase,&zexp);
        convert_scalar_to_number_ex(zbase);
        convert_scalar_to_number_ex(zexp);
-       if (Z_TYPE_PP(zbase) != IS_LONG && Z_TYPE_PP(zbase) != IS_DOUBLE ||
-               Z_TYPE_PP(zexp ) != IS_LONG && Z_TYPE_PP(zexp ) != IS_DOUBLE) {
+       if ((Z_TYPE_PP(zbase) != IS_LONG && Z_TYPE_PP(zbase) != IS_DOUBLE) ||
+               (Z_TYPE_PP(zexp ) != IS_LONG && Z_TYPE_PP(zexp ) != IS_DOUBLE)) {
                php_error(E_WARNING,"Invalid argument(s) passed to pow()");
                RETURN_FALSE;
        }