1
0
mirror of https://github.com/php/php-src.git synced 2026-04-12 10:33:11 +02:00

Kill a warning

This commit is contained in:
Rasmus Lerdorf
2001-08-04 20:52:35 +00:00
parent b245789bdb
commit 7d5999fb4d

View 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;
}