[Zodb-checkins]
SVN: ZODB/branches/nikhil_n-py25/src/BTrees/BTreeItemsTemplate.c
make C API work with Python 2.5
nikhil n
nikhil.n.n at gmail.com
Mon May 14 15:34:16 EDT 2007
Log message for revision 75747:
make C API work with Python 2.5
Changed:
U ZODB/branches/nikhil_n-py25/src/BTrees/BTreeItemsTemplate.c
-=-
Modified: ZODB/branches/nikhil_n-py25/src/BTrees/BTreeItemsTemplate.c
===================================================================
--- ZODB/branches/nikhil_n-py25/src/BTrees/BTreeItemsTemplate.c 2007-05-14 16:20:10 UTC (rev 75746)
+++ ZODB/branches/nikhil_n-py25/src/BTrees/BTreeItemsTemplate.c 2007-05-14 19:34:14 UTC (rev 75747)
@@ -255,7 +255,7 @@
break;
}
- result = PyTuple_New(2);
+ result = PyTuple_New((Py_ssize_t)2);
if (result) {
PyTuple_SET_ITEM(result, 0, key);
PyTuple_SET_ITEM(result, 1, value);
@@ -386,11 +386,11 @@
}
static PySequenceMethods BTreeItems_as_sequence = {
- (inquiry) BTreeItems_length,
+ (lenfunc) BTreeItems_length,
(binaryfunc)0,
- (intargfunc)0,
- (intargfunc) BTreeItems_item,
- (intintargfunc) BTreeItems_slice,
+ (ssizeargfunc)0,
+ (ssizeargfunc) BTreeItems_item,
+ (ssizessizeargfunc) BTreeItems_slice,
};
/* Number Method items (just for nb_nonzero!) */
@@ -403,7 +403,7 @@
static PyNumberMethods BTreeItems_as_number_for_nonzero = {
0,0,0,0,0,0,0,0,0,0,
- (inquiry)BTreeItems_nonzero};
+ (lenfunc)BTreeItems_nonzero};
static PyTypeObject BTreeItemsType = {
PyObject_HEAD_INIT(NULL)
More information about the Zodb-checkins
mailing list