Fix types when calling PyTuple_New
Replace int with Py_ssize_t to fix warnings on Windows when using -O and/or -builtin.
This commit is contained in:
parent
dd3d04a2f2
commit
fbada9959c
2 changed files with 6 additions and 5 deletions
|
|
@ -393,10 +393,10 @@ SwigPyStaticVar_new_getset(PyTypeObject *type, PyGetSetDef *getset) {
|
|||
|
||||
SWIGINTERN void
|
||||
SwigPyBuiltin_InitBases (PyTypeObject *type, PyTypeObject **bases) {
|
||||
int base_count = 0;
|
||||
Py_ssize_t base_count = 0;
|
||||
PyTypeObject **b;
|
||||
PyObject *tuple;
|
||||
int i;
|
||||
Py_ssize_t i;
|
||||
|
||||
if (!bases[0]) {
|
||||
bases[0] = SwigPyObject_type();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue