mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
distribute_rows_or_cols(): simplify code.
This commit is contained in:
parent
7a42d2f41d
commit
824b4374fa
@ -302,12 +302,11 @@ distribute_rows_or_cols(int *val_, int max_value, int *values, int values_count)
|
||||
int i;
|
||||
int divisor = 0;
|
||||
int tmp_val;
|
||||
int val = *val_;
|
||||
int val = *val_ - max_value;
|
||||
|
||||
for (i = 0; i < values_count; i++)
|
||||
if (values[i] < 1)
|
||||
values[i] = 1;
|
||||
val -= max_value;
|
||||
|
||||
for (i = 0; i < values_count; i++)
|
||||
divisor += values[i];
|
||||
|
Loading…
Reference in New Issue
Block a user