From 7d5999fb4db0068f8a28b3c391703fcbd3bb3787 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sat, 4 Aug 2001 20:52:35 +0000 Subject: [PATCH] Kill a warning --- ext/standard/math.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/math.c b/ext/standard/math.c index 378c206ff4..720a1fa3a3 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -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; } -- 2.40.0