Skip to content

Commit

Permalink
Merge pull request #45 from constfold/modify-slot-mask
Browse files Browse the repository at this point in the history
Modify the mask of slot to 0xFF (LuaJIT use)
  • Loading branch information
franko authored Aug 29, 2020
2 parents cad6124 + 44db409 commit 73c5155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lang/bcread.lua
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ end

local function uv_decode(uv)
if band(uv, 0x8000) ~= 0 then
local imm = (band(uv, 0x4000) ~= 0)
return band(uv, 0x3fff), true, imm
local imm = (band(uv, 0x40) ~= 0)
return band(uv, 0xff), true, imm
else
return uv, false, false
end
Expand Down

0 comments on commit 73c5155

Please sign in to comment.