aboutsummaryrefslogtreecommitdiffstats
path: root/net/websocket/frames.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-22 01:58:57 +0200
committerKim Alvefur <zash@zash.se>2019-07-22 01:58:57 +0200
commitaedca363c093007542941749578caf1badf1674e (patch)
tree0278d1d911935484dc9b2eae41b9d1490ff5ca82 /net/websocket/frames.lua
parente0334f431b28a3a773e077d567b84594b11dd925 (diff)
downloadprosody-aedca363c093007542941749578caf1badf1674e.tar.gz
prosody-aedca363c093007542941749578caf1badf1674e.zip
util.bitops: Library to find appropriate bitwise library (closes #1395)
Diffstat (limited to 'net/websocket/frames.lua')
-rw-r--r--net/websocket/frames.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/websocket/frames.lua b/net/websocket/frames.lua
index 86752109..5e17df07 100644
--- a/net/websocket/frames.lua
+++ b/net/websocket/frames.lua
@@ -9,8 +9,7 @@
local softreq = require "util.dependencies".softreq;
local random_bytes = require "util.random".bytes;
-local bit = assert(softreq"bit32" or softreq"bit",
- "No bit module found. See https://prosody.im/doc/depends#bitop");
+local bit = require "util.bitcompat";
local band = bit.band;
local bor = bit.bor;
local bxor = bit.bxor;