python 2.4 + gcc 4.2 fix

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-09-04 14:07:52 +01:00
1 parent 30bfe7c371
commit 8126ba895a
1 file changed
+1 -1
+1 -1
View File
@@ -1582,7 +1582,7 @@ static PyObject*\n%s(%s *self)
except utils.SkipWrapper:
pass
else:
method_defs.append('{"__copy__", (PyCFunction) %s, METH_NOARGS, NULL},' % copy_wrapper_name)
method_defs.append('{(char *) "__copy__", (PyCFunction) %s, METH_NOARGS, NULL},' % copy_wrapper_name)
## generate the method table
code_sink.writeln("static PyMethodDef %s_methods[] = {" % (self.pystruct,))