mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
distribute_rows_or_cols(): merge two loops.
This commit is contained in:
parent
824b4374fa
commit
ef37161070
@ -304,12 +304,13 @@ distribute_rows_or_cols(int *val_, int max_value, int *values, int values_count)
|
||||
int tmp_val;
|
||||
int val = *val_ - max_value;
|
||||
|
||||
for (i = 0; i < values_count; i++)
|
||||
for (i = 0; i < values_count; i++) {
|
||||
if (values[i] < 1)
|
||||
values[i] = 1;
|
||||
|
||||
for (i = 0; i < values_count; i++)
|
||||
divisor += values[i];
|
||||
}
|
||||
|
||||
assert(divisor);
|
||||
|
||||
tmp_val = val;
|
||||
|
Loading…
Reference in New Issue
Block a user