Fixed SF #1971977: typo in pycontainer.swg (related to -extranative option)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10504 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dac30b0de2
commit
1dfb0d7fad
2 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
Version 1.3.36 (in progress)
|
Version 1.3.36 (in progress)
|
||||||
=============================
|
=============================
|
||||||
|
05/29/2008: bhy
|
||||||
|
[Python] Fixed a typo of %#ifdef in Lib/python/pycontainer.swg, which is related
|
||||||
|
to -extranative SWIG option - SF #1971977.
|
||||||
|
|
||||||
05/20/2008: wsfulton
|
05/20/2008: wsfulton
|
||||||
New partialcheck makefile targets for partial testing of the test-suite. These
|
New partialcheck makefile targets for partial testing of the test-suite. These
|
||||||
|
|
|
||||||
|
|
@ -738,12 +738,12 @@ namespace swig {
|
||||||
typedef typename sequence::const_iterator const_iterator;
|
typedef typename sequence::const_iterator const_iterator;
|
||||||
|
|
||||||
static PyObject *from(const sequence& seq) {
|
static PyObject *from(const sequence& seq) {
|
||||||
#ifdef SWIG_PYTHON_EXTRA_NATIVE_CONTAINERS
|
%#ifdef SWIG_PYTHON_EXTRA_NATIVE_CONTAINERS
|
||||||
swig_type_info *desc = swig::type_info<sequence>();
|
swig_type_info *desc = swig::type_info<sequence>();
|
||||||
if (desc && desc->clientdata) {
|
if (desc && desc->clientdata) {
|
||||||
return SWIG_NewPointerObj(new sequence(seq), desc, SWIG_POINTER_OWN);
|
return SWIG_NewPointerObj(new sequence(seq), desc, SWIG_POINTER_OWN);
|
||||||
}
|
}
|
||||||
#endif
|
%#endif
|
||||||
size_type size = seq.size();
|
size_type size = seq.size();
|
||||||
if (size <= (size_type)INT_MAX) {
|
if (size <= (size_type)INT_MAX) {
|
||||||
PyObject *obj = PyTuple_New((int)size);
|
PyObject *obj = PyTuple_New((int)size);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue