Diff

net/websocket/frames.lua @ 10241:48f7cda4174d

util.bitops: Library to find appropriate bitwise library (closes #1395)
author Kim Alvefur <zash@zash.se>
date Mon, 22 Jul 2019 01:58:57 +0200
parent 9692:affcbccc1dff
child 11114:6a608ecb3471
line wrap: on
line diff
--- a/net/websocket/frames.lua	Sat Sep 07 19:00:37 2019 +0200
+++ b/net/websocket/frames.lua	Mon Jul 22 01:58:57 2019 +0200
@@ -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;