Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aee9bb2

Browse files
committed
Cast added by Jack Jansen (for Mac port).
1 parent 0fe1105 commit aee9bb2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/zlibmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,8 @@ PyZlib_objdecompress(self, args)
508508
int pos = self->zst.next_in - input; /* Position in the string */
509509
Py_XDECREF(self->unused_data); /* Free the original, empty string */
510510

511-
self->unused_data = PyString_FromStringAndSize(input+pos, inplen-pos);
511+
self->unused_data = PyString_FromStringAndSize((char *)input+pos,
512+
inplen-pos);
512513
if (self->unused_data == NULL) return NULL;
513514
}
514515

0 commit comments

Comments
 (0)