summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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