[Zodb-checkins] CVS: StandaloneZODB/ZODB - TimeStamp.c:1.12
Guido van Rossum
guido@python.org
Thu, 24 Jan 2002 15:19:07 -0500
Update of /cvs-repository/StandaloneZODB/ZODB
In directory cvs.zope.org:/tmp/cvs-serv23268
Modified Files:
TimeStamp.c
Log Message:
Add a few (char *) casts (from unsigned char *), suggested by Tom
Laredo. [merging from Recovery branch into trunk]
=== StandaloneZODB/ZODB/TimeStamp.c 1.11 => 1.12 ===
if (PyArg_ParseTuple(args, "iii|iid", &y, &mo, &d, &h, &m, &sec))
{
- s=self->data;
+ s=(char *)self->data;
v=((((y-1900)*12+mo-1)*31+d-1)*24+h)*60+m;
s[0]=v/16777216;
s[1]=(v%16777216)/65536;
@@ -237,7 +237,7 @@
self=o;
- UNLESS(a=PyString_FromStringAndSize(self->data, 8)) return NULL;
+ UNLESS(a=PyString_FromStringAndSize((char *) self->data, 8)) return NULL;
s=(unsigned char *)PyString_AsString(a);
for (i=7; i > 3; i--)
@@ -323,7 +323,7 @@
static PyObject *
TimeStamp_repr(TimeStamp *self)
{
- return PyString_FromStringAndSize(self->data, 8);
+ return PyString_FromStringAndSize((char *)self->data, 8);
}
static PyObject *