[Python-checkins] python/dist/src/Modules bz2module.c,1.8,1.9
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Fri, 08 Nov 2002 20:30:11 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv11497/modules
Modified Files:
bz2module.c
Log Message:
BZ2Comp_flush(): Fixed more int vs LONG_LONG confusions.
Index: bz2module.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/bz2module.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** bz2module.c 9 Nov 2002 04:28:17 -0000 1.8
--- bz2module.c 9 Nov 2002 04:30:08 -0000 1.9
***************
*** 1505,1509 ****
PyObject *ret = NULL;
bz_stream *bzs = &self->bzs;
! int totalout;
int bzerror;
--- 1505,1509 ----
PyObject *ret = NULL;
bz_stream *bzs = &self->bzs;
! LONG_LONG totalout;
int bzerror;
***************
*** 1547,1551 ****
if (bzs->avail_out != 0)
! _PyString_Resize(&ret, BZS_TOTAL_OUT(bzs) - totalout);
RELEASE_LOCK(self);
--- 1547,1551 ----
if (bzs->avail_out != 0)
! _PyString_Resize(&ret, (int)(BZS_TOTAL_OUT(bzs) - totalout));
RELEASE_LOCK(self);