summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2011-12-08 11:35:46 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2011-12-08 11:35:46 +1100
commite007b48835c9ccdf12f0bcfbdc86ee02c2f803a4 (patch)
tree1abd107414cf09f8b865781a53c1aba317bbe0d4 /ext
parent277029c1945042d40d8f3c9c73ec7fc4f384e1d5 (diff)
downloadmongo-e007b48835c9ccdf12f0bcfbdc86ee02c2f803a4.tar.gz
Fix some 64-bit conversion warnings in the snappy extension:
../../../../ext/compressors/snappy_compress/snappy_compress.c:106: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../../ext/compressors/snappy_compress/snappy_compress.c:147: warning: implicit conversion shortens 64-bit value into a 32-bit value
Diffstat (limited to 'ext')
-rw-r--r--ext/compressors/snappy_compress/snappy_compress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/compressors/snappy_compress/snappy_compress.c b/ext/compressors/snappy_compress/snappy_compress.c
index 37266031255..7dea67f4ae7 100644
--- a/ext/compressors/snappy_compress/snappy_compress.c
+++ b/ext/compressors/snappy_compress/snappy_compress.c
@@ -103,7 +103,7 @@ wt_snappy_compress(WT_COMPRESSOR *compressor, WT_SESSION *session,
*(size_t *)destp = snaplen;
destp += sizeof(size_t);
memcpy(destp, snapbuf, snaplen);
- dst->size = snaplen + sizeof(size_t);
+ dst->size = (uint32_t)(snaplen + sizeof(size_t));
*compression_failed = 0;
}
else
@@ -144,7 +144,7 @@ wt_snappy_decompress(WT_COMPRESSOR *compressor, WT_SESSION *session,
(char *)dst->data, &dstlen);
if (snret == SNAPPY_OK) {
- dst->size = dstlen;
+ dst->size = (uint32_t)dstlen;
ret = 0;
}
else