summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-08-04 20:52:35 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-08-04 20:52:35 +0000
commit7d5999fb4db0068f8a28b3c391703fcbd3bb3787 (patch)
tree99adda610a2c32a3f6a93c1b524b64a98d96f07c
parentb245789bdbf35a06d7a6616a615802e5bec9433f (diff)
downloadphp-git-7d5999fb4db0068f8a28b3c391703fcbd3bb3787.tar.gz
Kill a warning
-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;
}