Variable scope fix: need_recompute.

This commit is contained in:
Xinhao Yuan 2021-06-27 13:15:44 -04:00
parent 540519f026
commit 7f5b0b17a5
1 changed files with 1 additions and 2 deletions

View File

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