fix: lua bit32 can actually take several values. How did I miss this?

This commit is contained in:
iceman1001 committed 2018-07-27 09:07:53 +02:00
1 parent 3f9024eeaf
commit 1629287291
3 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ local function ApplyPermutationAndShifts( pos, value, nibble)
local shiftbytes = shifts[pos]
local shiftElem = shiftbytes[nibble+1] --one indexed
local shiftOne = shiftbytes[1]
local rs = bit32.bxor(value, bit32.bxor(shiftOne, shiftElem))
local rs = bit32.bxor(value, shiftOne, shiftElem)
return rs
end