From 587f000ab5afcac481c33c32231f8aaefc5fd30a Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 8 Nov 2008 16:55:57 +0000 Subject: [PATCH] correct prototype for setitem --- dtool/src/interrogate/interfaceMakerPythonNative.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dtool/src/interrogate/interfaceMakerPythonNative.cxx b/dtool/src/interrogate/interfaceMakerPythonNative.cxx index 8897e16629..548a805398 100755 --- a/dtool/src/interrogate/interfaceMakerPythonNative.cxx +++ b/dtool/src/interrogate/interfaceMakerPythonNative.cxx @@ -1377,14 +1377,14 @@ write_module_class(ostream &out, Object *obj) { break; case WT_sequence_setitem: - // Py_ssize_t func(PyObject *self, Py_ssize_t index, PyObject *value) + // int_t func(PyObject *self, Py_ssize_t index, PyObject *value) { Function *func = rfi->first; out << "//////////////////\n"; out << "// A wrapper function to satisfy Python's internal calling conventions. \n"; out << "// " <second._answer_location <<" = "<< methodNameFromCppName(func,export_calss_name) <<"\n"; out << "//////////////////\n"; - out << "static Py_ssize_t " << func->_name << methodNameFromCppName(func,export_calss_name) << "( PyObject * self, Py_ssize_t index, PyObject *value)\n"; + out << "static int " << func->_name << methodNameFromCppName(func,export_calss_name) << "( PyObject * self, Py_ssize_t index, PyObject *value)\n"; out << "{\n"; out << " PyObject *args = Py_BuildValue(\"(iO)\", index, value);\n"; out << " PyObject *result = " << func->_name <<"(self, args, NULL);\n";