mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument to
_PyString_Resize to int.
This commit is contained in:
parent
07f075cebb
commit
f29f0c6a78
1 changed files with 1 additions and 1 deletions
|
|
@ -1480,7 +1480,7 @@ BZ2Comp_compress(BZ2CompObject *self, PyObject *args)
|
|||
}
|
||||
}
|
||||
|
||||
_PyString_Resize(&ret, BZS_TOTAL_OUT(bzs) - totalout);
|
||||
_PyString_Resize(&ret, (int)(BZS_TOTAL_OUT(bzs) - totalout));
|
||||
|
||||
RELEASE_LOCK(self);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue