expt: add a case for complex-float ^ integer.

Lack of this switch branch lead to unrecoverable error. Fixes #547.
This commit is contained in:
Daniel Kochmański 2019-12-30 22:00:14 +01:00
parent 78138b65dc
commit bbd3c2d6d0
2 changed files with 7 additions and 1 deletions

View file

@ -202,6 +202,12 @@ ecl_expt(cl_object x, cl_object y)
case t_doublefloat:
case t_singlefloat:
return ecl_expt_float(x, y);
#ifdef ECL_COMPLEX_FLOAT
case t_clfloat:
case t_cdfloat:
case t_csfloat:
return ecl_expt_complex_float(x, y);
#endif
default:
ecl_internal_error("expt: unhandled switch branch.");
}

View file

@ -298,5 +298,5 @@
;;
;; (EXPT #C(1.0 0.0) 2) causes unrecoverable error.
;;
(test.csfloat.0010.issue-547
(test csfloat.0010.issue-547
(finishes (expt #c(1.0 0.0) 2))))