]> granicus.if.org Git - xz/commitdiff
liblzma: Silence more uint32_t vs. size_t warnings.
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 7 Mar 2015 20:01:00 +0000 (22:01 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 7 Mar 2015 20:01:00 +0000 (22:01 +0200)
src/liblzma/lz/lz_encoder.c
src/liblzma/lzma/lzma_encoder.c

index 01dfc06f3eca7acbb83d14ffcc0306147b9e8300..48bc487d685371945d8453e3abac05dcf7d9e3fe 100644 (file)
@@ -139,7 +139,7 @@ fill_window(lzma_coder *coder, const lzma_allocator *allocator,
                        && coder->mf.read_pos < coder->mf.read_limit) {
                // Match finder may update coder->pending and expects it to
                // start from zero, so use a temporary variable.
-               const size_t pending = coder->mf.pending;
+               const uint32_t pending = coder->mf.pending;
                coder->mf.pending = 0;
 
                // Rewind read_pos so that the match finder can hash
index 31cb4f044829f34f446400c50814aada8681db29..4c5f99c3823db92fc37e2cddbf7e9befbdaee6f4 100644 (file)
@@ -464,7 +464,7 @@ length_encoder_reset(lzma_length_encoder *lencoder,
        bittree_reset(lencoder->high, LEN_HIGH_BITS);
 
        if (!fast_mode)
-               for (size_t pos_state = 0; pos_state < num_pos_states;
+               for (uint32_t pos_state = 0; pos_state < num_pos_states;
                                ++pos_state)
                        length_update_prices(lencoder, pos_state);