aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2015-03-07 19:33:17 +0200
committerLasse Collin <lasse.collin@tukaani.org>2015-03-07 19:33:17 +0200
commitf6ec46801588b1be29c07c9db98558b521304002 (patch)
treeb19dc108fdbebc190bc37dc0d2d27340b12a10fb /src/liblzma
parentBuild: Fix a CR+LF problem when running autoreconf -fi on OS/2. (diff)
downloadxz-f6ec46801588b1be29c07c9db98558b521304002.tar.xz
liblzma: Fix a warning in index.c.
Diffstat (limited to 'src/liblzma')
-rw-r--r--src/liblzma/common/index.c4
1 files changed, 3 insertions, 1 deletions
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;