mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 23:33:53 +01:00
PNG: Always use bit XOR polyfill for now
This commit is contained in:
parent
281db12a5f
commit
8801a3d159
@ -3,7 +3,7 @@ local signature = "\137\80\78\71\13\10\26\10"
|
|||||||
local assert, char, ipairs, insert, concat, abs, floor = assert, string.char, ipairs, table.insert, table.concat, math.abs, math.floor
|
local assert, char, ipairs, insert, concat, abs, floor = assert, string.char, ipairs, table.insert, table.concat, math.abs, math.floor
|
||||||
|
|
||||||
-- TODO move to modlib.bit eventually
|
-- TODO move to modlib.bit eventually
|
||||||
local bit_xor = bit and bit.bxor or function(a, b)
|
local function bit_xor(a, b)
|
||||||
local res = 0
|
local res = 0
|
||||||
local bit = 1
|
local bit = 1
|
||||||
for _ = 1, 32 do
|
for _ = 1, 32 do
|
||||||
|
Loading…
Reference in New Issue
Block a user