]> granicus.if.org Git - python/commitdiff
Added a couple of casts to make this compile with CodeWarrior.
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 8 Jan 2003 16:28:45 +0000 (16:28 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 8 Jan 2003 16:28:45 +0000 (16:28 +0000)
Modules/datetimemodule.c

index 54e6aac98539d34316baa28d53e4a574d471db93..b01f139efe78fd97ca4b82aefd458ec8bf28a941 100644 (file)
@@ -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);
 }