summaryrefslogtreecommitdiff
path: root/Modules/_bz2module.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-08-16 01:03:39 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-08-16 01:03:39 +0200
commit706768c687f5413c909168736506aaf4fb4861c0 (patch)
tree98131f201f269d30031ed6e3c6d98fe4cf1fe649 /Modules/_bz2module.c
parent12174a5dcaf1bdcd8d5fd790a8cad07049bddce6 (diff)
downloadcpython-git-706768c687f5413c909168736506aaf4fb4861c0.tar.gz
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_bz2module.c b/Modules/_bz2module.c
index e652f4dfcd..4f2afda097 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;