cvs: php4 /ext/standard math.c

From: Date: Sat, 04 Aug 2001 20:52:36 +0000
Subject: cvs: php4 /ext/standard math.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6554@lists.php.net to get a copy of this message
rasmus Sat Aug 4 16:52:36 2001 EDT Modified files: /php4/ext/standard math.c Log: Kill a warning Index: php4/ext/standard/math.c diff -u php4/ext/standard/math.c:1.47 php4/ext/standard/math.c:1.48 --- php4/ext/standard/math.c:1.47 Sat Aug 4 14:29:37 2001 +++ php4/ext/standard/math.c Sat Aug 4 16:52:35 2001 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: math.c,v 1.47 2001/08/04 18:29:37 jeroen Exp $ */ +/* $Id: math.c,v 1.48 2001/08/04 20:52:35 rasmus Exp $ */ #include "php.h" #include "php_math.h" @@ -398,8 +398,8 @@ 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; }

« previous php.cvs (#6554) next »