fixed unsigned long typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8035 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
556e5e2a58
commit
8f66e0ced2
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ SWIG_AsVal_dec(unsigned long)(SV *obj, unsigned long *val)
|
|||
return SWIG_OK;
|
||||
} else if (SvIOK(obj)) {
|
||||
long v = SvIV(obj);
|
||||
if (v > 0) {
|
||||
if (v >= 0) {
|
||||
if (val) *val = v;
|
||||
return SWIG_OK;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue