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:
Marcelo Matus 2005-12-18 00:09:26 +00:00
commit aee99ddce7

View file

@ -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);