Fixed [ 761844 ] bug in typemap in Python Swig docs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5002 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
220200b31a
commit
5e6c2f8da2
1 changed files with 1 additions and 1 deletions
|
|
@ -3325,7 +3325,7 @@ previous example:
|
|||
if (PyList_Check($input)) {
|
||||
int i;
|
||||
$1 = PyList_Size($input);
|
||||
$2 = (char **) malloc((size+1)*sizeof(char *));
|
||||
$2 = (char **) malloc(($1+1)*sizeof(char *));
|
||||
for (i = 0; i < $1; i++) {
|
||||
PyObject *o = PyList_GetItem($input,i);
|
||||
if (PyString_Check(o))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue