From a89ce5bca8b1de16303eb1376da38b95405f6944 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Mon, 27 Dec 2021 20:09:26 +0100 Subject: [PATCH] Fix hashlist:pop_head --- hashlist.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/hashlist.lua b/hashlist.lua index 6702fb9..832e4c6 100644 --- a/hashlist.lua +++ b/hashlist.lua @@ -84,6 +84,7 @@ end function list:pop_head() if self.length == 0 then return end local value = self:get_head() + self.length = self.length - 1 self.head = self.head + 1 self[self.head] = nil return value