mirror of https://git.tukaani.org/xz.git
liblzma: Silence more uint32_t vs. size_t warnings.
This commit is contained in:
parent
7f0a4c50f4
commit
f243f5f44c
|
@ -139,7 +139,7 @@ fill_window(lzma_coder *coder, const lzma_allocator *allocator,
|
||||||
&& coder->mf.read_pos < coder->mf.read_limit) {
|
&& coder->mf.read_pos < coder->mf.read_limit) {
|
||||||
// Match finder may update coder->pending and expects it to
|
// Match finder may update coder->pending and expects it to
|
||||||
// start from zero, so use a temporary variable.
|
// 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;
|
coder->mf.pending = 0;
|
||||||
|
|
||||||
// Rewind read_pos so that the match finder can hash
|
// Rewind read_pos so that the match finder can hash
|
||||||
|
|
|
@ -464,7 +464,7 @@ length_encoder_reset(lzma_length_encoder *lencoder,
|
||||||
bittree_reset(lencoder->high, LEN_HIGH_BITS);
|
bittree_reset(lencoder->high, LEN_HIGH_BITS);
|
||||||
|
|
||||||
if (!fast_mode)
|
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)
|
++pos_state)
|
||||||
length_update_prices(lencoder, pos_state);
|
length_update_prices(lencoder, pos_state);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue