From 7b712fc9d2188e5f3743720239a465f8089bdebf Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 24 Aug 2020 13:17:15 -0300 Subject: Do not assume Lua 5.3 includes bit32 We can't autodetect this either because the interpreter running LuaRocks may not be the same one running Lua. Fixes #1204. --- src/luarocks/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua index af63b79d..29a8f8e4 100644 --- a/src/luarocks/util.lua +++ b/src/luarocks/util.lua @@ -600,7 +600,7 @@ function util.get_rocks_provided(rockspec) rocks_provided["lua"] = lv.."-1" - if lv == "5.2" or lv == "5.3" then + if lv == "5.2" then rocks_provided["bit32"] = lv.."-1" end -- cgit v1.2.3-55-g6feb