From 3c130737c9bb4a5021bb14eb19e9ceae30ffef3a Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 12 May 2024 15:08:10 +0300 Subject: [PATCH] xz: parse_block_list: Edit integer type casting (cherry picked from commit e89293a0baeb8663707c6b4a74fbb310ec698a8f) --- src/xz/args.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/xz/args.c b/src/xz/args.c index b3ad54ea..141347e4 100644 --- a/src/xz/args.c +++ b/src/xz/args.c @@ -126,9 +126,8 @@ parse_block_list(const char *str_const) "filter chain number '%c:'"), str[0]); - int filter_num = str[0] - '0'; - opt_block_list[i].filters_index = - (uint32_t)filter_num; + const uint32_t filter_num = (uint32_t)(str[0] - '0'); + opt_block_list[i].filters_index = filter_num; str += 2; }