]> granicus.if.org Git - python/commitdiff
Added missing cast.
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 23 Oct 2001 22:29:06 +0000 (22:29 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 23 Oct 2001 22:29:06 +0000 (22:29 +0000)
Modules/zlibmodule.c

index 9555740b2ac3d0580de5821a8d55e7e4f816873b..2df7f6fa03d7703fc7502036120d707b3fd7d5c3 100644 (file)
@@ -527,7 +527,7 @@ PyZlib_objdecompress(compobject *self, PyObject *args)
        of specified size. Return the unconsumed tail in an attribute.*/
     if(max_length) {
        Py_DECREF(self->unconsumed_tail);
-       self->unconsumed_tail = PyString_FromStringAndSize(self->zst.next_in,
+       self->unconsumed_tail = PyString_FromStringAndSize((char *)self->zst.next_in,
                                                           self->zst.avail_in);
        if(!self->unconsumed_tail) {
            Py_DECREF(RetVal);