]> granicus.if.org Git - python/commitdiff
Cast added by Jack Jansen (for Mac port).
authorGuido van Rossum <guido@python.org>
Mon, 12 Apr 1999 14:35:48 +0000 (14:35 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 12 Apr 1999 14:35:48 +0000 (14:35 +0000)
Modules/zlibmodule.c

index 515b19c107122dcb08428c69bced234fa67cd2b9..51478c3d9636c6fd2b5400a19fe4fd48cb172b9f 100644 (file)
@@ -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;
   }