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:
Marcelo Matus 2004-10-25 19:11:25 +00:00
commit dab4e48132

View file

@ -326,13 +326,6 @@ type_error:
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) {