From: Tim Peters Date: Sat, 9 Nov 2002 04:23:31 +0000 (+0000) Subject: Repaired signed-vs-unsigned mismatch. X-Git-Tag: v2.3c1~3509 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a17c0c4509db6545eaf770c0586f37028745f07a;p=thirdparty%2FPython%2Fcpython.git Repaired signed-vs-unsigned mismatch. --- diff --git a/Modules/bz2module.c b/Modules/bz2module.c index 51d07e699e47..ab9b184e0bac 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;