fix more VC7.1 warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b5875c21bb
commit
3c93d884c7
2 changed files with 3 additions and 3 deletions
|
|
@ -541,7 +541,7 @@ SWIGINTERN int
|
|||
long v;
|
||||
if (SWIG_AsVal(long)(obj, &v)) {
|
||||
if (SWIG_CheckLongInRange(v, WCHAR_MIN, WCHAR_MAX, errmsg)) {
|
||||
if (val) *val = v;
|
||||
if (val) *val = SWIG_numeric_cast(v, wchar_t);
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue