diff options
author | Kim Alvefur <zash@zash.se> | 2018-11-29 16:53:22 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-11-29 16:53:22 +0100 |
commit | 874cf01e2b01cf96392763957ef1df9f77dedc24 (patch) | |
tree | c58e626acdc0648b8e7e278347dd26d9ce19bec2 | |
parent | 1331a867a7c3083e1824dc92b9fca8171a677d8a (diff) | |
download | prosody-874cf01e2b01cf96392763957ef1df9f77dedc24.tar.gz prosody-874cf01e2b01cf96392763957ef1df9f77dedc24.zip |
net.websocket.frames: Prefer Lua 5.2 built-in bit module over LuaJIT version
When running on Lua 5.2 this makes sense since bit32 is usually already
loaded. It's sensible to prefer this going forward in case of
incompatibilities between the two variants.
-rw-r--r-- | net/websocket/frames.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/websocket/frames.lua b/net/websocket/frames.lua index ba25d261..b5aebb40 100644 --- a/net/websocket/frames.lua +++ b/net/websocket/frames.lua @@ -9,7 +9,7 @@ local softreq = require "util.dependencies".softreq; local random_bytes = require "util.random".bytes; -local bit = assert(softreq"bit" or softreq"bit32", +local bit = assert(softreq"bit32" or softreq"bit", "No bit module found. See https://prosody.im/doc/depends#bitop"); local band = bit.band; local bor = bit.bor; |