commit | a17c0c4509db6545eaf770c0586f37028745f07a | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Sat Nov 09 04:23:31 2002 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Sat Nov 09 04:23:31 2002 +0000 |
tree | 910185f30ab86d06f545fa068d1cdf921806cec4 | |
parent | e32280987cadea69a3d7b69b51e9cd9d02211dfc [diff] [blame] |
Repaired signed-vs-unsigned mismatch.
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 @@ /* 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;