summaryrefslogtreecommitdiffstats
path: root/Modules/datetimemodule.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-01-08 16:28:45 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-01-08 16:28:45 (GMT)
commitb8941f2dbe73803ce75134ebd039c1f94b61b0c0 (patch)
tree399b9975871c687199f5a8b1823f5a987ebd3e39 /Modules/datetimemodule.c
parent3e82872ecaa642ff8bab89c4323d1c3b09981665 (diff)
downloadcpython-b8941f2dbe73803ce75134ebd039c1f94b61b0c0.zip
cpython-b8941f2dbe73803ce75134ebd039c1f94b61b0c0.tar.gz
cpython-b8941f2dbe73803ce75134ebd039c1f94b61b0c0.tar.bz2
Added a couple of casts to make this compile with CodeWarrior.
Diffstat (limited to 'Modules/datetimemodule.c')
-rw-r--r--Modules/datetimemodule.c6
1 files 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);
}