[Zope-Checkins] CVS: StandaloneZODB/ZODB - TimeStamp.c:1.10.18.2
Guido van Rossum
guido@python.org
Thu, 24 Jan 2002 01:05:45 -0500
Update of /cvs-repository/StandaloneZODB/ZODB
In directory cvs.zope.org:/tmp/cvs-serv29513
Modified Files:
Tag: Recovery
TimeStamp.c
Log Message:
Add a few (char *) casts (from unsigned char *), suggested by Tom
Laredo.
=== StandaloneZODB/ZODB/TimeStamp.c 1.10.18.1 => 1.10.18.2 ===
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 *