projects
/
platform
/
upstream
/
lz4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55ab3c4
)
correctly use unisgned int for index
author
gabrielstedman
<gabriwinter@gmail.com>
Sat, 20 Apr 2019 23:20:38 +0000
(
00:20
+0100)
committer
gabrielstedman
<gabriwinter@gmail.com>
Sat, 20 Apr 2019 23:20:38 +0000
(
00:20
+0100)
programs/lz4cli.c
patch
|
blob
|
history
diff --git
a/programs/lz4cli.c
b/programs/lz4cli.c
index
adfabc3
..
54d93f1
100644
(file)
--- a/
programs/lz4cli.c
+++ b/
programs/lz4cli.c
@@
-714,9
+714,9
@@
int main(int argc, const char** argv)
inFileNames[ifnIdx++] = input_filename;
}
DISPLAY("%16s\t%-20s\t%-20s\t%-10s\t%s\n","BlockChecksumFlag","Compressed", "Uncompressed", "Ratio", "Filename");
- for(
i=0; i<ifnIdx; i
++){
+ for(
unsigned int j=0; j<ifnIdx; j
++){
/* Get file info */
- if (!LZ4IO_getCompressedFileInfo(inFileNames[
i
], &cfinfo)){
+ if (!LZ4IO_getCompressedFileInfo(inFileNames[
j
], &cfinfo)){
DISPLAYLEVEL(1, "Failed to get frame info.\n");
if (!multiple_inputs){
return 1;