Fix incorrect casts for Scilab enums
This commit is contained in:
parent
fc79264a48
commit
6f5417499a
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue