Kaydet (Commit) caef93d8 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Silence warnings about passing unsigned char** as char**.

üst 02646fe6
...@@ -125,7 +125,7 @@ PyZlib_compress(PyObject *self, PyObject *args) ...@@ -125,7 +125,7 @@ PyZlib_compress(PyObject *self, PyObject *args)
return NULL; return NULL;
/* now get a pointer to the internal string */ /* now get a pointer to the internal string */
if (PyString_AsStringAndSize(inputString, &input, &length) == -1) if (PyString_AsStringAndSize(inputString, (char**)&input, &length) == -1)
return NULL; return NULL;
zst.avail_out = length + length/1000 + 12 + 1; zst.avail_out = length + length/1000 + 12 + 1;
...@@ -249,7 +249,7 @@ PyZlib_decompress(PyObject *self, PyObject *args) ...@@ -249,7 +249,7 @@ PyZlib_decompress(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "S|ii:decompress", &inputString, &wsize, &r_strlen)) if (!PyArg_ParseTuple(args, "S|ii:decompress", &inputString, &wsize, &r_strlen))
return NULL; return NULL;
if (PyString_AsStringAndSize(inputString, &input, &length) == -1) if (PyString_AsStringAndSize(inputString, (char**)&input, &length) == -1)
return NULL; return NULL;
if (r_strlen <= 0) if (r_strlen <= 0)
...@@ -523,7 +523,7 @@ PyZlib_objcompress(compobject *self, PyObject *args) ...@@ -523,7 +523,7 @@ PyZlib_objcompress(compobject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "S:compress", &inputString)) if (!PyArg_ParseTuple(args, "S:compress", &inputString))
return NULL; return NULL;
if (PyString_AsStringAndSize(inputString, &input, &inplen) == -1) if (PyString_AsStringAndSize(inputString, (char**)&input, &inplen) == -1)
return NULL; return NULL;
if (!(RetVal = PyString_FromStringAndSize(NULL, length))) { if (!(RetVal = PyString_FromStringAndSize(NULL, length))) {
...@@ -613,7 +613,7 @@ PyZlib_objdecompress(compobject *self, PyObject *args) ...@@ -613,7 +613,7 @@ PyZlib_objdecompress(compobject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "S:decompress", &inputString)) if (!PyArg_ParseTuple(args, "S:decompress", &inputString))
return NULL; return NULL;
if (PyString_AsStringAndSize(inputString, &input, &inplen) == -1) if (PyString_AsStringAndSize(inputString, (char**)&input, &inplen) == -1)
return NULL; return NULL;
if (!(RetVal = PyString_FromStringAndSize(NULL, length))) { if (!(RetVal = PyString_FromStringAndSize(NULL, length))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment