@@ -125,7 +125,7 @@ PyZlib_compress(PyObject *self, PyObject *args)
125125 return NULL ;
126126
127127 /* now get a pointer to the internal string */
128- if (PyString_AsStringAndSize (inputString , & input , & length ) == -1 )
128+ if (PyString_AsStringAndSize (inputString , ( char * * ) & input , & length ) == -1 )
129129 return NULL ;
130130
131131 zst .avail_out = length + length /1000 + 12 + 1 ;
@@ -249,7 +249,7 @@ PyZlib_decompress(PyObject *self, PyObject *args)
249249
250250 if (!PyArg_ParseTuple (args , "S|ii:decompress" , & inputString , & wsize , & r_strlen ))
251251 return NULL ;
252- if (PyString_AsStringAndSize (inputString , & input , & length ) == -1 )
252+ if (PyString_AsStringAndSize (inputString , ( char * * ) & input , & length ) == -1 )
253253 return NULL ;
254254
255255 if (r_strlen <= 0 )
@@ -523,7 +523,7 @@ PyZlib_objcompress(compobject *self, PyObject *args)
523523
524524 if (!PyArg_ParseTuple (args , "S:compress" , & inputString ))
525525 return NULL ;
526- if (PyString_AsStringAndSize (inputString , & input , & inplen ) == -1 )
526+ if (PyString_AsStringAndSize (inputString , ( char * * ) & input , & inplen ) == -1 )
527527 return NULL ;
528528
529529 if (!(RetVal = PyString_FromStringAndSize (NULL , length ))) {
@@ -613,7 +613,7 @@ PyZlib_objdecompress(compobject *self, PyObject *args)
613613
614614 if (!PyArg_ParseTuple (args , "S:decompress" , & inputString ))
615615 return NULL ;
616- if (PyString_AsStringAndSize (inputString , & input , & inplen ) == -1 )
616+ if (PyString_AsStringAndSize (inputString , ( char * * ) & input , & inplen ) == -1 )
617617 return NULL ;
618618
619619 if (!(RetVal = PyString_FromStringAndSize (NULL , length ))) {
0 commit comments