diff options
author | Guido van Rossum <guido@python.org> | 1999-04-12 14:35:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-04-12 14:35:48 (GMT) |
commit | aee9bb2d0b4a4bed84e4f1ab644885d1e27c1783 (patch) | |
tree | a6413678bff55a514dbd0a8275c2494523fd0a71 /Modules/zlibmodule.c | |
parent | 0fe110548dc9b06974ab1fc4c93fa319bd726786 (diff) | |
download | cpython-aee9bb2d0b4a4bed84e4f1ab644885d1e27c1783.zip cpython-aee9bb2d0b4a4bed84e4f1ab644885d1e27c1783.tar.gz cpython-aee9bb2d0b4a4bed84e4f1ab644885d1e27c1783.tar.bz2 |
Cast added by Jack Jansen (for Mac port).
Diffstat (limited to 'Modules/zlibmodule.c')
-rw-r--r-- | Modules/zlibmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 515b19c..51478c3 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; } |