summaryrefslogtreecommitdiffstats
path: root/Modules/bz2module.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-11-09 04:23:31 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-11-09 04:23:31 (GMT)
commita17c0c4509db6545eaf770c0586f37028745f07a (patch)
tree910185f30ab86d06f545fa068d1cdf921806cec4 /Modules/bz2module.c
parente32280987cadea69a3d7b69b51e9cd9d02211dfc (diff)
downloadcpython-a17c0c4509db6545eaf770c0586f37028745f07a.zip
cpython-a17c0c4509db6545eaf770c0586f37028745f07a.tar.gz
cpython-a17c0c4509db6545eaf770c0586f37028745f07a.tar.bz2
Repaired signed-vs-unsigned mismatch.
Diffstat (limited to 'Modules/bz2module.c')
-rw-r--r--Modules/bz2module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/bz2module.c b/Modules/bz2module.c
index 51d07e6..ab9b184 100644
--- a/Modules/bz2module.c
+++ b/Modules/bz2module.c
@@ -1047,7 +1047,7 @@ BZ2File_seek(BZ2FileObject *self, PyObject *args)
/* Before getting here, offset must be set to the number of bytes
* to walk forward. */
for (;;) {
- if (offset-bytesread > buffersize)
+ if ((size_t)offset-bytesread > buffersize)
readsize = buffersize;
else
readsize = offset-bytesread;