Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe1105 commit aee9bb2Copy full SHA for aee9bb2
1 file changed
Modules/zlibmodule.c
@@ -508,7 +508,8 @@ PyZlib_objdecompress(self, args)
508
int pos = self->zst.next_in - input; /* Position in the string */
509
Py_XDECREF(self->unused_data); /* Free the original, empty string */
510
511
- self->unused_data = PyString_FromStringAndSize(input+pos, inplen-pos);
+ self->unused_data = PyString_FromStringAndSize((char *)input+pos,
512
+ inplen-pos);
513
if (self->unused_data == NULL) return NULL;
514
}
515
0 commit comments