avoid swig_types of length 0, and allow to iterate over the array, for Lua mainly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a752866adc
commit
d61a776308
2 changed files with 2 additions and 1 deletions
|
|
@ -114,6 +114,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|||
/* Set entry in modules->types array equal to the type */
|
||||
swig_module.types[i] = type;
|
||||
}
|
||||
swig_module.types[i] = 0;
|
||||
}
|
||||
|
||||
/* This function will propagate the clientdata field of type to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue