numbers: expt: add default clause to avoid compilation warnings

We simply call ecl_internal_error there.
This commit is contained in:
Daniel Kochmański 2019-05-23 15:09:29 +02:00
parent fcdb1b0657
commit 372d340fe1

View file

@ -207,6 +207,8 @@ ecl_expt(cl_object x, cl_object y)
case t_doublefloat:
case t_singlefloat:
return ecl_expt_float(x, y);
default:
ecl_internal_error("expt: unhandled switch branch.");
}
}
if (ECL_COMPLEXP(y) || ECL_COMPLEXP(x) || ecl_minusp(x)) {