summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2012-03-20 23:12:31 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2012-03-20 23:12:31 +1100
commit99bc3af83bca2663fbe4dd293a8c47eece76b62b (patch)
tree6a9326d406b0112488a21c253ded18591161d225
parentf43ca10b1d761d5eab3dfcf8884b2da94fad0d29 (diff)
downloadmongo-99bc3af83bca2663fbe4dd293a8c47eece76b62b.tar.gz
../../../../ext/compressors/bzip2_compress/bzip2_compress.c:161: warning: implicit conversion shortens 64-bit value into a 32-bit value
--HG-- extra : rebase_source : 67f5d6fe20895f7f2891df98c1062b84a2db85da
-rw-r--r--ext/compressors/bzip2_compress/bzip2_compress.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/compressors/bzip2_compress/bzip2_compress.c b/ext/compressors/bzip2_compress/bzip2_compress.c
index ac122133ea5..7d31e97ec09 100644
--- a/ext/compressors/bzip2_compress/bzip2_compress.c
+++ b/ext/compressors/bzip2_compress/bzip2_compress.c
@@ -158,9 +158,9 @@ bzip2_compress(WT_COMPRESSOR *compressor, WT_SESSION *session,
return (bzip2_error(session, "BZ2_bzCompressInit", ret));
bz.next_in = (char *)src;
- bz.avail_in = src_len;
+ bz.avail_in = (uint32_t)src_len;
bz.next_out = (char *)dst;
- bz.avail_out = dst_len;
+ bz.avail_out = (uint32_t)dst_len;
if ((ret = BZ2_bzCompress(&bz, BZ_FINISH)) == BZ_STREAM_END) {
*compression_failed = 0;
*result_lenp = dst_len - bz.avail_out;
@@ -193,9 +193,9 @@ bzip2_decompress(WT_COMPRESSOR *compressor, WT_SESSION *session,
return (bzip2_error(session, "BZ2_bzDecompressInit", ret));
bz.next_in = (char *)src;
- bz.avail_in = src_len;
+ bz.avail_in = (uint32_t)src_len;
bz.next_out = (char *)dst;
- bz.avail_out = dst_len;
+ bz.avail_out = (uint32_t)dst_len;
if ((ret = BZ2_bzDecompress(&bz)) == BZ_STREAM_END) {
*result_lenp = dst_len - bz.avail_out;
ret = 0;