mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Cast added by Jack Jansen (for Mac port).
This commit is contained in:
parent
0fe110548d
commit
aee9bb2d0b
1 changed files with 2 additions and 1 deletions
|
|
@ -508,7 +508,8 @@ PyZlib_objdecompress(self, args)
|
||||||
int pos = self->zst.next_in - input; /* Position in the string */
|
int pos = self->zst.next_in - input; /* Position in the string */
|
||||||
Py_XDECREF(self->unused_data); /* Free the original, empty 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;
|
if (self->unused_data == NULL) return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue