pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2016-05-17
2016-05-17 14:54:47 by Per Hedbor <ph@opera.com>
7259038f8287f4f7dc99f0ab1101aa2bd2556f3f (
14
lines) (+
4
/-
10
)
[
Show
|
Annotate
]
Branch:
8.1
Keep pow(float,float) as float even when the calculation overflows
3778:
res_is_powf: {
-
double r = pow( a, b );
-
if( r != HUGE_VAL )
-
{
+
sp-=2;
-
push_float(
r
);
+
push_float(
pow(
a, b
)
)
;
return; }
-
}
-
/* When float overflows, switch to bignums. FIXME: mpf? */
-
/* fallthrough */
-
+
default: stack_swap(); convert_stack_top_to_bignum();