summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/math.c4
1 files 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;
}