BZ2Decomp_decompress(): Fixed more long vs LONG_LONG confusions.

This commit is contained in:
Tim Peters 2002-11-09 04:31:38 +00:00
parent 2858e5e84b
commit 39185d622d
1 changed files with 2 additions and 2 deletions

View File

@ -1709,7 +1709,7 @@ BZ2Decomp_decompress(BZ2DecompObject *self, PyObject *args)
char *data; char *data;
int datasize; int datasize;
int bufsize = SMALLCHUNK; int bufsize = SMALLCHUNK;
long totalout; LONG_LONG totalout;
PyObject *ret = NULL; PyObject *ret = NULL;
bz_stream *bzs = &self->bzs; bz_stream *bzs = &self->bzs;
int bzerror; int bzerror;
@ -1769,7 +1769,7 @@ BZ2Decomp_decompress(BZ2DecompObject *self, PyObject *args)
} }
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;