summaryrefslogtreecommitdiffstats
path: root/Modules/zlibmodule.c
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-02-22 15:52:55 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-02-22 15:52:55 (GMT)
commita1a690fa9cf3f2f02aec97119a3a81806bb247ac (patch)
tree642a189c855d77577606113159b16518f08ccea0 /Modules/zlibmodule.c
parentb995509c2f3ede335d9c15e3274968e03708baa3 (diff)
downloadcpython-a1a690fa9cf3f2f02aec97119a3a81806bb247ac.zip
cpython-a1a690fa9cf3f2f02aec97119a3a81806bb247ac.tar.gz
cpython-a1a690fa9cf3f2f02aec97119a3a81806bb247ac.tar.bz2
Patch #103926: fix two warnings from Tru64's compiler
Diffstat (limited to 'Modules/zlibmodule.c')
-rw-r--r--Modules/zlibmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
index 3d77fca..fbb8ece 100644
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -492,7 +492,7 @@ PyZlib_objdecompress(compobject *self, PyObject *args)
behaviour of only calling it on flush() is preserved.*/
if (err == Z_STREAM_END) {
Py_XDECREF(self->unused_data); /* Free the original, empty string */
- self->unused_data = PyString_FromStringAndSize(self->zst.next_in,
+ self->unused_data = PyString_FromStringAndSize((char *)self->zst.next_in,
self->zst.avail_in);
if (self->unused_data == NULL) {
PyErr_SetString(PyExc_MemoryError,