diff options
author | Kim Alvefur <zash@zash.se> | 2019-07-22 01:58:57 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-07-22 01:58:57 +0200 |
commit | 3dcfc5ee71761a90edbd32165725f38ffd323237 (patch) | |
tree | 0278d1d911935484dc9b2eae41b9d1490ff5ca82 /net | |
parent | 42861396cd1eeb5a880691e9ee00a75836b2fddb (diff) | |
download | prosody-3dcfc5ee71761a90edbd32165725f38ffd323237.tar.gz prosody-3dcfc5ee71761a90edbd32165725f38ffd323237.zip |
util.bitops: Library to find appropriate bitwise library (closes #1395)
Diffstat (limited to 'net')
-rw-r--r-- | net/websocket/frames.lua | 3 |
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; |