Commit 03f5043f authored by Michael Niedermayer's avatar Michael Niedermayer

eval: Fix eval test with ftrapv

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e73bac48
...@@ -258,7 +258,7 @@ static double eval_expr(Parser *p, AVExpr *e) ...@@ -258,7 +258,7 @@ static double eval_expr(Parser *p, AVExpr *e)
case e_gte: return e->value * (d >= d2 ? 1.0 : 0.0); case e_gte: return e->value * (d >= d2 ? 1.0 : 0.0);
case e_pow: return e->value * pow(d, d2); case e_pow: return e->value * pow(d, d2);
case e_mul: return e->value * (d * d2); case e_mul: return e->value * (d * d2);
case e_div: return e->value * (d / d2); case e_div: return e->value * ((!CONFIG_FTRAPV || d2 ) ? (d / d2) : d * INFINITY);
case e_add: return e->value * (d + d2); case e_add: return e->value * (d + d2);
case e_last:return e->value * d2; case e_last:return e->value * d2;
case e_st : return e->value * (p->var[av_clip(d, 0, VARS-1)]= d2); case e_st : return e->value * (p->var[av_clip(d, 0, VARS-1)]= d2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment