Restore containers accepting NULL pointers when used in overloaded methods - problem reported by Josh Cherry
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10217 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5ad2a3ab0c
commit
76229dbab8
3 changed files with 12 additions and 1 deletions
|
|
@ -702,7 +702,7 @@ namespace swig {
|
|||
typedef T value_type;
|
||||
|
||||
static int asptr(PyObject *obj, sequence **seq) {
|
||||
if (SWIG_Python_GetSwigThis(obj)) {
|
||||
if (obj == Py_None || SWIG_Python_GetSwigThis(obj)) {
|
||||
sequence *p;
|
||||
if (SWIG_ConvertPtr(obj,(void**)&p,
|
||||
swig::type_info<sequence>(),0) == SWIG_OK) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue