Variable scope fix: need_recompute.
This commit is contained in:
parent
540519f026
commit
7f5b0b17a5
|
@ -36,9 +36,8 @@ local function fair_split(length, shares)
|
|||
local sum_adj
|
||||
local remaining = #shares
|
||||
local spare = nil
|
||||
local need_recompute = false
|
||||
repeat
|
||||
local need_recompute = false
|
||||
|
||||
sum_weight = 0
|
||||
sum_adj = 0
|
||||
for i = 1, #shares do
|
||||
|
|
Loading…
Reference in New Issue