Commit e3d100b2 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Fix OPER_EXP operand test for the float_t case.

2000-01-05  Morten Welinder  <terra@diku.dk>

	* src/expr.c (eval_expr_real): Fix OPER_EXP operand test for the
 	float_t case.
parent 9a9864f8
2000-01-05 Morten Welinder <terra@diku.dk>
* src/expr.c (eval_expr_real): Fix OPER_EXP operand test for the
float_t case.
* src/parser.y (register_allocation, unregister_allocation):
Ignore NULLs.
......
2000-01-05 Morten Welinder <terra@diku.dk>
* src/expr.c (eval_expr_real): Fix OPER_EXP operand test for the
float_t case.
* src/parser.y (register_allocation, unregister_allocation):
Ignore NULLs.
......
......@@ -887,7 +887,8 @@ eval_expr_real (FunctionEvalInfo * const s, ExprTree const * const tree)
: value_new_float (va / vb);
case OPER_EXP:
if (va == 0 && vb <= 0)
if ((va == 0 && vb <= 0) ||
(va < 0 && vb != (int)vb))
return value_new_error (&s->pos, gnumeric_err_NUM);
return value_new_float (pow (va, vb));
......
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