From d1e8848e759735b08eb4fd8ed2e55ea759e91cc9 Mon Sep 17 00:00:00 2001 From: John Regan Date: Thu, 12 Nov 2020 17:35:10 -0500 Subject: [PATCH] bit library: add Lua 5.4 --- http/bit.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/bit.lua b/http/bit.lua index 0f6f0b69..a1efbc68 100644 --- a/http/bit.lua +++ b/http/bit.lua @@ -7,8 +7,8 @@ The bit operations are only done This means we can ignore the differences between bit libraries. ]] --- Lua 5.3 has built-in bit operators, wrap them in a function. -if _VERSION == "Lua 5.3" then +-- Lua 5.3+ has built-in bit operators, wrap them in a function. +if _VERSION == "Lua 5.4" or _VERSION == "Lua 5.3" then -- Use debug.getinfo to get correct file+line numbers for loaded snippet local info = debug.getinfo(1, "Sl") return assert(load(("\n"):rep(info.currentline+1)..[[return {