mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Patch #103926: fix two warnings from Tru64's compiler
This commit is contained in:
parent
b995509c2f
commit
a1a690fa9c
2 changed files with 4 additions and 2 deletions
|
|
@ -492,7 +492,7 @@ PyZlib_objdecompress(compobject *self, PyObject *args)
|
|||
behaviour of only calling it on flush() is preserved.*/
|
||||
if (err == Z_STREAM_END) {
|
||||
Py_XDECREF(self->unused_data); /* Free the original, empty string */
|
||||
self->unused_data = PyString_FromStringAndSize(self->zst.next_in,
|
||||
self->unused_data = PyString_FromStringAndSize((char *)self->zst.next_in,
|
||||
self->zst.avail_in);
|
||||
if (self->unused_data == NULL) {
|
||||
PyErr_SetString(PyExc_MemoryError,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue