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:
Dave Beazley 2003-08-15 18:25:51 +00:00
commit 5e6c2f8da2

View file

@ -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))