diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-08-15 23:03:39 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-08-15 23:03:39 (GMT) |
commit | 706768c687f5413c909168736506aaf4fb4861c0 (patch) | |
tree | 98131f201f269d30031ed6e3c6d98fe4cf1fe649 /Modules/_bz2module.c | |
parent | 12174a5dcaf1bdcd8d5fd790a8cad07049bddce6 (diff) | |
download | cpython-706768c687f5413c909168736506aaf4fb4861c0.zip cpython-706768c687f5413c909168736506aaf4fb4861c0.tar.gz cpython-706768c687f5413c909168736506aaf4fb4861c0.tar.bz2 |
Issue #22156: Fix some "comparison between signed and unsigned integers"
compiler warnings in the Modules/ subdirectory.
Diffstat (limited to 'Modules/_bz2module.c')
-rw-r--r-- | Modules/_bz2module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_bz2module.c b/Modules/_bz2module.c index e652f4d..4f2afda 100644 --- a/Modules/_bz2module.c +++ b/Modules/_bz2module.c @@ -188,7 +188,7 @@ compress(BZ2Compressor *c, char *data, size_t len, int action) if (action == BZ_FINISH && bzerror == BZ_STREAM_END) break; } - if (data_size != PyBytes_GET_SIZE(result)) + if (data_size != (size_t)PyBytes_GET_SIZE(result)) if (_PyBytes_Resize(&result, data_size) < 0) goto error; return result; @@ -457,7 +457,7 @@ decompress(BZ2Decompressor *d, char *data, size_t len) d->bzs.avail_out = (unsigned int)Py_MIN(buffer_left, UINT_MAX); } } - if (data_size != PyBytes_GET_SIZE(result)) + if (data_size != (size_t)PyBytes_GET_SIZE(result)) if (_PyBytes_Resize(&result, data_size) < 0) goto error; return result; |