Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ee6db8

Browse files
committed
bz2_compress/bz2_decompress: more casting away LONG_LONG for
_PyString_Resize calls.
1 parent 39185d6 commit 6ee6db8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/bz2module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ bz2_compress(PyObject *self, PyObject *args, PyObject *kwargs)
19781978
}
19791979

19801980
if (bzs->avail_out != 0)
1981-
_PyString_Resize(&ret, BZS_TOTAL_OUT(bzs));
1981+
_PyString_Resize(&ret, (int)BZS_TOTAL_OUT(bzs));
19821982
BZ2_bzCompressEnd(bzs);
19831983

19841984
return ret;
@@ -2057,7 +2057,7 @@ bz2_decompress(PyObject *self, PyObject *args)
20572057
}
20582058

20592059
if (bzs->avail_out != 0)
2060-
_PyString_Resize(&ret, BZS_TOTAL_OUT(bzs));
2060+
_PyString_Resize(&ret, (int)BZS_TOTAL_OUT(bzs));
20612061
BZ2_bzDecompressEnd(bzs);
20622062

20632063
return ret;

0 commit comments

Comments
 (0)