Mercurial > cpython-lru_cache-weakref
diff Modules/zlibmodule.c @ 19810:ce57fff93962 legacy-trunk
Silence warnings about passing unsigned char** as char**.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 08 Sep 2001 16:23:34 +0000 |
| parents | 091c01d07d98 |
| children | 54f05b9b1fc4 |
line wrap: on
line diff
--- a/Modules/zlibmodule.c Sat Sep 08 13:57:16 2001 +0000 +++ b/Modules/zlibmodule.c Sat Sep 08 16:23:34 2001 +0000 @@ -125,7 +125,7 @@ return NULL; /* 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; zst.avail_out = length + length/1000 + 12 + 1; @@ -249,7 +249,7 @@ if (!PyArg_ParseTuple(args, "S|ii:decompress", &inputString, &wsize, &r_strlen)) return NULL; - if (PyString_AsStringAndSize(inputString, &input, &length) == -1) + if (PyString_AsStringAndSize(inputString, (char**)&input, &length) == -1) return NULL; if (r_strlen <= 0) @@ -523,7 +523,7 @@ if (!PyArg_ParseTuple(args, "S:compress", &inputString)) return NULL; - if (PyString_AsStringAndSize(inputString, &input, &inplen) == -1) + if (PyString_AsStringAndSize(inputString, (char**)&input, &inplen) == -1) return NULL; if (!(RetVal = PyString_FromStringAndSize(NULL, length))) { @@ -613,7 +613,7 @@ if (!PyArg_ParseTuple(args, "S:decompress", &inputString)) return NULL; - if (PyString_AsStringAndSize(inputString, &input, &inplen) == -1) + if (PyString_AsStringAndSize(inputString, (char**)&input, &inplen) == -1) return NULL; if (!(RetVal = PyString_FromStringAndSize(NULL, length))) {
