From: Guido van Rossum Date: Mon, 12 Apr 1999 14:35:48 +0000 (+0000) Subject: Cast added by Jack Jansen (for Mac port). X-Git-Tag: v1.5.2~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aee9bb2d0b4a4bed84e4f1ab644885d1e27c1783;p=thirdparty%2FPython%2Fcpython.git Cast added by Jack Jansen (for Mac port). --- diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 515b19c10712..51478c3d9636 100644 --- a/Modules/zlibmodule.c +++ b/Modules/zlibmodule.c @@ -508,7 +508,8 @@ PyZlib_objdecompress(self, args) int pos = self->zst.next_in - input; /* Position in the string */ Py_XDECREF(self->unused_data); /* Free the original, empty string */ - self->unused_data = PyString_FromStringAndSize(input+pos, inplen-pos); + self->unused_data = PyString_FromStringAndSize((char *)input+pos, + inplen-pos); if (self->unused_data == NULL) return NULL; }