Scilab array overbounds fix handling char type exceptions

This commit is contained in:
William S Fulton 2018-05-03 22:35:31 +01:00
commit 179b41067d

View file

@ -43,7 +43,7 @@
}
%typemap(throws, noblock=1) char, char& {
char obj[1];
char obj[2];
sprintf(obj, "%c", (char)$1);
SWIG_Scilab_Raise_Ex(obj, "$type", $descriptor);
}