Commit 6ee6db81 authored by Tim Peters's avatar Tim Peters

bz2_compress/bz2_decompress: more casting away LONG_LONG for

_PyString_Resize calls.
parent 39185d62
......@@ -1978,7 +1978,7 @@ bz2_compress(PyObject *self, PyObject *args, PyObject *kwargs)
}
if (bzs->avail_out != 0)
_PyString_Resize(&ret, BZS_TOTAL_OUT(bzs));
_PyString_Resize(&ret, (int)BZS_TOTAL_OUT(bzs));
BZ2_bzCompressEnd(bzs);
return ret;
......@@ -2057,7 +2057,7 @@ bz2_decompress(PyObject *self, PyObject *args)
}
if (bzs->avail_out != 0)
_PyString_Resize(&ret, BZS_TOTAL_OUT(bzs));
_PyString_Resize(&ret, (int)BZS_TOTAL_OUT(bzs));
BZ2_bzDecompressEnd(bzs);
return ret;
......
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