no more zero value accepted for pointers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6498 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7e4f23332b
commit
dab4e48132
1 changed files with 0 additions and 7 deletions
|
|
@ -326,13 +326,6 @@ type_error:
|
||||||
goto type_check;
|
goto type_check;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (PyInt_Check(obj)) {
|
|
||||||
/* here we check for the only accepted zero value */
|
|
||||||
long v = PyInt_AsLong(obj);
|
|
||||||
if (v == 0) {
|
|
||||||
*ptr = 0;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (flags & SWIG_POINTER_EXCEPTION) {
|
if (flags & SWIG_POINTER_EXCEPTION) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue