# HG changeset patch # User Kim Alvefur # Date 1687516003 -7200 # Node ID 674daff6c73b2b45118d411efc632a7610a71901 # Parent 57417c37d018266aa7b7d5ff875da6de8a1a51ff use util.bitcompat from Prosody for bitwise compat layer diff -r 57417c37d018 -r 674daff6c73b squishy --- a/squishy Fri Jun 23 12:16:09 2023 +0200 +++ b/squishy Fri Jun 23 12:26:43 2023 +0200 @@ -16,7 +16,8 @@ end Module "util.sha1" "util/sha1.lua" - Module "util.bit" "libs/bit.lua" + Module "util.bitcompat" "libs/bitcompat.lua" + Module "util.bit53" "libs/bit53.lua" Module "util.stanza" "util/stanza.lua" Module "util.timer" "util/timer.lua" @@ -117,6 +118,7 @@ -- Verse-specific versions of libraries VerseModule "verse.util.adhoc" "libs/adhoc.lib.lua" +VerseModule "verse.util.bit" "libs/bit.lua" VerseModule "verse.util.encodings" "libs/encodings.lua" VerseModule "verse.util.hashes" "libs/hashes.lua" VerseModule "verse.util.table" "libs/table.lua" diff -r 57417c37d018 -r 674daff6c73b util/sha1.lua --- a/util/sha1.lua Fri Jun 23 12:16:09 2023 +0200 +++ b/util/sha1.lua Fri Jun 23 12:26:43 2023 +0200 @@ -13,7 +13,7 @@ local strbyte = string.byte local strsub = string.sub local floor = math.floor -local bit = bit32 or require "prosody.util.bit" +local bit = require "prosody.util.bitcompat" local bnot = bit.bnot local band = bit.band local bor = bit.bor