aboutsummaryrefslogtreecommitdiffstats
path: root/net/websocket/frames.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-11-29 16:53:22 +0100
committerKim Alvefur <zash@zash.se>2018-11-29 16:53:22 +0100
commit2e3e5db959672f2175223d670d106f1202e95f49 (patch)
treec58e626acdc0648b8e7e278347dd26d9ce19bec2 /net/websocket/frames.lua
parent16ddfbbe443acfbb5657b77978b7e774faf34753 (diff)
downloadprosody-2e3e5db959672f2175223d670d106f1202e95f49.tar.gz
prosody-2e3e5db959672f2175223d670d106f1202e95f49.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.
Diffstat (limited to 'net/websocket/frames.lua')
-rw-r--r--net/websocket/frames.lua2
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;