Fix incorrect casts for Scilab enums

This commit is contained in:
William S Fulton 2018-11-12 07:31:24 +00:00
commit 6f5417499a

View file

@ -97,7 +97,7 @@
if (SWIG_AsVal_dec(Enum)($input, &val) != SWIG_OK) {
return SWIG_ERROR;
}
$1 = %reinterpret_cast(val, $ltype);
$1 = %static_cast(val, $1_ltype);
}
%typemap(out, fragment=SWIG_From_frag(Enum)) enum SWIGTYPE {