mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
BZ2Comp_flush(): Fixed more int vs LONG_LONG confusions.
This commit is contained in:
parent
f29f0c6a78
commit
2858e5e84b
1 changed files with 2 additions and 2 deletions
|
|
@ -1504,7 +1504,7 @@ BZ2Comp_flush(BZ2CompObject *self)
|
|||
int bufsize = SMALLCHUNK;
|
||||
PyObject *ret = NULL;
|
||||
bz_stream *bzs = &self->bzs;
|
||||
int totalout;
|
||||
LONG_LONG totalout;
|
||||
int bzerror;
|
||||
|
||||
ACQUIRE_LOCK(self);
|
||||
|
|
@ -1546,7 +1546,7 @@ BZ2Comp_flush(BZ2CompObject *self)
|
|||
}
|
||||
|
||||
if (bzs->avail_out != 0)
|
||||
_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