From b8941f2dbe73803ce75134ebd039c1f94b61b0c0 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Wed, 8 Jan 2003 16:28:45 +0000 Subject: Added a couple of casts to make this compile with CodeWarrior. --- Modules/datetimemodule.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index 54e6aac..b01f139 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c @@ -2560,7 +2560,7 @@ date_weekday(PyDateTime_Date *self) static PyObject * date_getstate(PyDateTime_Date *self) { - return PyString_FromStringAndSize(self->data, + return PyString_FromStringAndSize((char *)self->data, _PyDateTime_DATE_DATASIZE); } @@ -3356,7 +3356,7 @@ datetime_gettime(PyDateTime_DateTime *self) static PyObject * datetime_getstate(PyDateTime_DateTime *self) { - return PyString_FromStringAndSize(self->data, + return PyString_FromStringAndSize((char *)self->data, _PyDateTime_DATETIME_DATASIZE); } @@ -3826,7 +3826,7 @@ time_nonzero(PyDateTime_Time *self) static PyObject * time_getstate(PyDateTime_Time *self) { - return PyString_FromStringAndSize(self->data, + return PyString_FromStringAndSize((char *)self->data, _PyDateTime_TIME_DATASIZE); } -- cgit v0.12