From f6ec46801588b1be29c07c9db98558b521304002 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sat, 7 Mar 2015 19:33:17 +0200 Subject: [PATCH] liblzma: Fix a warning in index.c. --- src/liblzma/common/index.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/liblzma/common/index.c b/src/liblzma/common/index.c index 11f45f40..e897646c 100644 --- a/src/liblzma/common/index.c +++ b/src/liblzma/common/index.c @@ -339,7 +339,7 @@ index_tree_locate(const index_tree *tree, lzma_vli target) /// Allocate and initialize a new Stream using the given base offsets. static index_stream * index_stream_init(lzma_vli compressed_base, lzma_vli uncompressed_base, - lzma_vli stream_number, lzma_vli block_number_base, + uint32_t stream_number, lzma_vli block_number_base, const lzma_allocator *allocator) { index_stream *s = lzma_alloc(sizeof(index_stream), allocator); @@ -1008,6 +1008,8 @@ iter_set_info(lzma_index_iter *iter) iter->internal[ITER_GROUP].p = NULL; } + // NOTE: lzma_index_iter.stream.number is lzma_vli but we use uint32_t + // internally. iter->stream.number = stream->number; iter->stream.block_count = stream->record_count; iter->stream.compressed_offset = stream->node.compressed_base;