aboutsummaryrefslogtreecommitdiff
path: root/src/xz/args.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2019-06-23 23:19:34 +0300
committerLasse Collin <lasse.collin@tukaani.org>2019-06-23 23:19:34 +0300
commit7883d73530b4b2a701ddd7d50c35676cbc158039 (patch)
treedea64895ae28278af681691c029f3e1c8c7cedd2 /src/xz/args.c
parenttuklib_cpucores: Silence warnings from -Wsign-conversion. (diff)
downloadxz-7883d73530b4b2a701ddd7d50c35676cbc158039.tar.xz
xz: Fix some of the warnings from -Wsign-conversion.
Diffstat (limited to 'src/xz/args.c')
-rw-r--r--src/xz/args.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xz/args.c b/src/xz/args.c
index 688d7c3a..9238fb32 100644
--- a/src/xz/args.c
+++ b/src/xz/args.c
@@ -218,7 +218,7 @@ parse_real(args_info *args, int argc, char **argv)
// Compression preset (also for decompression if --format=raw)
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
- coder_set_preset(c - '0');
+ coder_set_preset((uint32_t)(c - '0'));
break;
// --memlimit-compress
@@ -683,7 +683,7 @@ args_parse(args_info *args, int argc, char **argv)
// We got at least one filename from the command line, or
// --files or --files0 was specified.
args->arg_names = argv + optind;
- args->arg_count = argc - optind;
+ args->arg_count = (unsigned int)(argc - optind);
}
return;