fix error in char typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7999 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c2b306d72a
commit
aee99ddce7
1 changed files with 1 additions and 1 deletions
|
|
@ -542,7 +542,7 @@ SWIG_AsVal_dec(Char)(SWIG_Object obj, Char *val)
|
|||
int res = SWIG_As##CharName##Array(obj, val, 1);
|
||||
if (res != SWIG_OK) {
|
||||
long v;
|
||||
res = SWIG_AsVal(long)(obj, (val ? &v : 0));
|
||||
res = SWIG_AsVal(long)(obj, &v);
|
||||
if (res == SWIG_OK) {
|
||||
if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
|
||||
if (val) *val = %numeric_cast(v, Char);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue