Mercurial > cpython-lru_cache-weakref
diff Modules/zlibmodule.c @ 10571:4aff39175137 legacy-trunk
Cast added by Jack Jansen (for Mac port).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 12 Apr 1999 14:35:48 +0000 |
| parents | ccee3c28b7ef |
| children | 69216c11a1bd |
line wrap: on
line diff
--- a/Modules/zlibmodule.c Mon Apr 12 14:35:08 1999 +0000 +++ b/Modules/zlibmodule.c Mon Apr 12 14:35:48 1999 +0000 @@ -508,7 +508,8 @@ 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; }
