diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-09-30 07:25:32 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-09-30 07:25:32 +0100 |
commit | bd3bd2179be360f86c7db3fcd400dbb168fa8be5 (patch) | |
tree | 3a37db7b805b1555d08cc61c7938cf512ff35ce0 /util | |
parent | 1e7dbb1f5e01aab3e7c802a7e4a00eca4393c34c (diff) | |
parent | 403c051a217c0df715df8f51c4f39947fad0f65e (diff) | |
download | prosody-bd3bd2179be360f86c7db3fcd400dbb168fa8be5.tar.gz prosody-bd3bd2179be360f86c7db3fcd400dbb168fa8be5.zip |
Merge 0.11->trunk
Diffstat (limited to 'util')
-rw-r--r-- | util/indexedbheap.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/indexedbheap.lua b/util/indexedbheap.lua index 7f193d54..45830673 100644 --- a/util/indexedbheap.lua +++ b/util/indexedbheap.lua @@ -23,7 +23,7 @@ local function _percolate_up(self, k, sync, index) local tmp_sync = sync[k]; while k ~= 1 do local parent = math_floor(k/2); - if tmp < self[parent] then break; end + if tmp >= self[parent] then break; end self[k] = self[parent]; sync[k] = sync[parent]; index[sync[k]] = k; |