Scilab array overbounds fix handling char type exceptions
This commit is contained in:
parent
6cc6d21bd2
commit
179b41067d
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
%typemap(throws, noblock=1) char, char& {
|
%typemap(throws, noblock=1) char, char& {
|
||||||
char obj[1];
|
char obj[2];
|
||||||
sprintf(obj, "%c", (char)$1);
|
sprintf(obj, "%c", (char)$1);
|
||||||
SWIG_Scilab_Raise_Ex(obj, "$type", $descriptor);
|
SWIG_Scilab_Raise_Ex(obj, "$type", $descriptor);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue