mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-21 06:03:54 +00:00
Fix ISO C warning in lrzip.c
This commit is contained in:
parent
90f7228507
commit
2e3eed5d77
1 changed files with 3 additions and 1 deletions
4
lrzip.c
4
lrzip.c
|
|
@ -879,7 +879,9 @@ static double percentage(i64 num, i64 den)
|
|||
|
||||
if (den < 100) {
|
||||
d_num = num * 100;
|
||||
d_den = den ? : 1;
|
||||
d_den = den;
|
||||
if (!d_den)
|
||||
d_den = 1;
|
||||
} else {
|
||||
d_num = num;
|
||||
d_den = den / 100;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue