Python - fix compilation error when using -extranative and -builtin.

Closes #816
This commit is contained in:
William S Fulton 2016-11-02 22:00:54 +00:00
commit bdda0a0829
5 changed files with 32 additions and 1 deletions

View file

@ -1012,7 +1012,7 @@ namespace swig {
%#ifdef SWIG_PYTHON_EXTRA_NATIVE_CONTAINERS
swig_type_info *desc = swig::type_info<sequence>();
if (desc && desc->clientdata) {
return SWIG_NewPointerObj(new sequence(seq), desc, SWIG_POINTER_OWN);
return SWIG_InternalNewPointerObj(new sequence(seq), desc, SWIG_POINTER_OWN);
}
%#endif
size_type size = seq.size();