liblzma: Silence another warning from -Wsign-conversion in a 32-bit build.
It doesn't warn on a 64-bit system because truncating a ptrdiff_t (signed long) to uint32_t is diagnosed under -Wconversion by GCC and -Wshorten-64-to-32 by Clang.
This commit is contained in:
parent
37fbdfb726
commit
31c21c734b
|
@ -220,10 +220,11 @@ move_pending(lzma_mf *mf)
|
||||||
/// of matches found.
|
/// of matches found.
|
||||||
#define call_find(func, len_best) \
|
#define call_find(func, len_best) \
|
||||||
do { \
|
do { \
|
||||||
matches_count = func(len_limit, pos, cur, cur_match, mf->depth, \
|
matches_count = (uint32_t)(func(len_limit, pos, cur, cur_match, \
|
||||||
mf->son, mf->cyclic_pos, mf->cyclic_size, \
|
mf->depth, mf->son, \
|
||||||
|
mf->cyclic_pos, mf->cyclic_size, \
|
||||||
matches + matches_count, len_best) \
|
matches + matches_count, len_best) \
|
||||||
- matches; \
|
- matches); \
|
||||||
move_pos(mf); \
|
move_pos(mf); \
|
||||||
return matches_count; \
|
return matches_count; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
Loading…
Reference in New Issue