[Zodb-checkins]
SVN: ZODB/branches/nikhil_n-py25/src/persistent/TimeStamp.c
make C API work with Python 2.5
nikhil n
nikhil.n.n at gmail.com
Mon May 14 15:40:59 EDT 2007
Log message for revision 75755:
make C API work with Python 2.5
Changed:
U ZODB/branches/nikhil_n-py25/src/persistent/TimeStamp.c
-=-
Modified: ZODB/branches/nikhil_n-py25/src/persistent/TimeStamp.c
===================================================================
--- ZODB/branches/nikhil_n-py25/src/persistent/TimeStamp.c 2007-05-14 19:40:40 UTC (rev 75754)
+++ ZODB/branches/nikhil_n-py25/src/persistent/TimeStamp.c 2007-05-14 19:40:58 UTC (rev 75755)
@@ -218,7 +218,7 @@
static PyObject *
TimeStamp_raw(TimeStamp *self)
{
- return PyString_FromStringAndSize((const char*)self->data, 8);
+ return PyString_FromStringAndSize((const char*)self->data, (Py_ssize_t)8);
}
static PyObject *
@@ -233,7 +233,7 @@
p.y, p.m, p.d, p.mi / 60, p.mi % 60,
TimeStamp_sec(self));
- return PyString_FromStringAndSize(buf, len);
+ return PyString_FromStringAndSize(buf, (Py_ssize_t)len);
}
More information about the Zodb-checkins
mailing list