mirror of
https://github.com/php/php-src.git
synced 2025-01-25 21:23:45 +08:00
Another bugfix in pow. Special cases, with 10 times the same thing are
_so_ error_prone... :(
This commit is contained in:
parent
7d5999fb4d
commit
68df8ea465
@ -470,7 +470,8 @@ PHP_FUNCTION(pow)
|
||||
if (lexp == 1) {
|
||||
RETURN_LONG(LONG_MIN);
|
||||
} else {
|
||||
RETURN_DOUBLE(exp(log(-(double)LONG_MIN) * (double)lexp));
|
||||
dval = exp(log(-(double)LONG_MIN) * (double)lexp);
|
||||
RETURN_DOUBLE(lexp&1 ? -dval : dval);
|
||||
}
|
||||
default:
|
||||
/* abs(lbase) > 1 */
|
||||
|
Loading…
Reference in New Issue
Block a user