[Python-checkins] r62298 - python/trunk/Modules/bz2module.c
gregory.p.smith
python-checkins at python.org
Sat Apr 12 22:37:49 CEST 2008
Author: gregory.p.smith
Date: Sat Apr 12 22:37:48 2008
New Revision: 62298
Log:
fix compiler warnings
Modified:
python/trunk/Modules/bz2module.c
Modified: python/trunk/Modules/bz2module.c
==============================================================================
--- python/trunk/Modules/bz2module.c (original)
+++ python/trunk/Modules/bz2module.c Sat Apr 12 22:37:48 2008
@@ -1064,7 +1064,7 @@
/* we cannot move back, so rewind the stream */
BZ2_bzReadClose(&bzerror, self->fp);
if (self->fp) {
- PyFile_DecUseCount(self->file);
+ PyFile_DecUseCount((PyFileObject *)self->file);
self->fp = NULL;
}
if (bzerror != BZ_OK) {
@@ -1080,7 +1080,7 @@
self->fp = BZ2_bzReadOpen(&bzerror, PyFile_AsFile(self->file),
0, 0, NULL, 0);
if (self->fp)
- PyFile_IncUseCount(self->file);
+ PyFile_IncUseCount((PyFileObject *)self->file);
if (bzerror != BZ_OK) {
Util_CatchBZ2Error(bzerror);
goto cleanup;
@@ -1181,7 +1181,7 @@
break;
}
if (self->fp) {
- PyFile_DecUseCount(self->file);
+ PyFile_DecUseCount((PyFileObject *)self->file);
self->fp = NULL;
}
self->mode = MODE_CLOSED;
@@ -1386,7 +1386,7 @@
Util_CatchBZ2Error(bzerror);
goto error;
}
- PyFile_IncUseCount(self->file);
+ PyFile_IncUseCount((PyFileObject *)self->file);
self->mode = (mode_char == 'r') ? MODE_READ : MODE_WRITE;
@@ -1422,7 +1422,7 @@
break;
}
if (self->fp) {
- PyFile_DecUseCount(self->file);
+ PyFile_DecUseCount((PyFileObject *)self->file);
self->fp = NULL;
}
Util_DropReadAhead(self);
More information about the Python-checkins
mailing list