diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/l-bit32.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/l-bit32.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/l-bit32.lua b/Master/texmf-dist/tex/context/base/mkiv/l-bit32.lua index 25716e0a8ad..5f35b8feecd 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/l-bit32.lua +++ b/Master/texmf-dist/tex/context/base/mkiv/l-bit32.lua @@ -20,7 +20,7 @@ elseif utf8 then -- lua 5.3: bitwise.lua, v 1.24 2014/12/26 17:20:53 roberto - load ( [[ + bit32 = load ( [[ local select = select -- instead of: arg = { ... } bit32 = { @@ -105,13 +105,13 @@ bit32 = { return ((a & ~(mask << f)) | ((v & mask) << f)) & 0xFFFFFFFF end, } - ]] ) () + ]] ) elseif bit then -- luajit (for now) - load ( [[ + bit32 = load ( [[ local band, bnot, rshift, lshift = bit.band, bit.bnot, bit.rshift, bit.lshift bit32 = { @@ -135,7 +135,7 @@ bit32 = { rrotate = bit.ror, rshift = rshift, } - ]] ) () + ]] ) else @@ -146,3 +146,5 @@ else xpcall(function() local _, t = require("bit32") if t then bit32 = t end return end,function() end) end + +return bit32 or false |