static PyObject *
date_getstate(PyDateTime_Date *self)
{
- return PyString_FromStringAndSize(self->data,
+ return PyString_FromStringAndSize((char *)self->data,
_PyDateTime_DATE_DATASIZE);
}
static PyObject *
datetime_getstate(PyDateTime_DateTime *self)
{
- return PyString_FromStringAndSize(self->data,
+ return PyString_FromStringAndSize((char *)self->data,
_PyDateTime_DATETIME_DATASIZE);
}
static PyObject *
time_getstate(PyDateTime_Time *self)
{
- return PyString_FromStringAndSize(self->data,
+ return PyString_FromStringAndSize((char *)self->data,
_PyDateTime_TIME_DATASIZE);
}