Kaydet (Commit) 2858e5e8 authored tarafından Tim Peters's avatar Tim Peters

BZ2Comp_flush(): Fixed more int vs LONG_LONG confusions.

üst f29f0c6a
...@@ -1504,7 +1504,7 @@ BZ2Comp_flush(BZ2CompObject *self) ...@@ -1504,7 +1504,7 @@ BZ2Comp_flush(BZ2CompObject *self)
int bufsize = SMALLCHUNK; int bufsize = SMALLCHUNK;
PyObject *ret = NULL; PyObject *ret = NULL;
bz_stream *bzs = &self->bzs; bz_stream *bzs = &self->bzs;
int totalout; LONG_LONG totalout;
int bzerror; int bzerror;
ACQUIRE_LOCK(self); ACQUIRE_LOCK(self);
...@@ -1546,7 +1546,7 @@ BZ2Comp_flush(BZ2CompObject *self) ...@@ -1546,7 +1546,7 @@ BZ2Comp_flush(BZ2CompObject *self)
} }
if (bzs->avail_out != 0) 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); RELEASE_LOCK(self);
return ret; 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