diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2015-03-07 19:54:00 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2015-03-07 19:54:00 +0200 |
commit | 7f0a4c50f4a374c40acf4b86848f301ad1e82d34 (patch) | |
tree | 5bb8bba9e03535afc26b85d430e6a0fd142b3d83 /src/xz/main.c | |
parent | liblzma: Fix a warning in index.c. (diff) | |
download | xz-7f0a4c50f4a374c40acf4b86848f301ad1e82d34.tar.xz |
xz: Make arg_count an unsigned int to silence a warning.
Actually the value of arg_count cannot exceed INT_MAX
but it's nicer as an unsigned int.
Diffstat (limited to 'src/xz/main.c')
-rw-r--r-- | src/xz/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xz/main.c b/src/xz/main.c index a8f0683a..5608229d 100644 --- a/src/xz/main.c +++ b/src/xz/main.c @@ -212,7 +212,7 @@ main(int argc, char **argv) // Process the files given on the command line. Note that if no names // were given, args_parse() gave us a fake "-" filename. - for (size_t i = 0; i < args.arg_count && !user_abort; ++i) { + for (unsigned i = 0; i < args.arg_count && !user_abort; ++i) { if (strcmp("-", args.arg_names[i]) == 0) { // Processing from stdin to stdout. Check that we // aren't writing compressed data to a terminal or |