Commit 58bc926a authored by Jack Jansen's avatar Jack Jansen

Added a couple of casts to make this compile with CodeWarrior.

parent ff6a2aad
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment