1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-30 01:55:30 +00:00

distribute_rows_or_cols(): merge two loops.

This commit is contained in:
Laurent MONIN 2006-06-06 23:10:29 +02:00 committed by Laurent MONIN
parent 824b4374fa
commit ef37161070

View File

@ -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;