Skip to content

Commit

Permalink
Fix the wrong mask in uv_decode
Browse files Browse the repository at this point in the history
  • Loading branch information
constfold committed Jun 24, 2020
1 parent 80688a7 commit c0f8dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/bcread.lua
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ end

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

0 comments on commit c0f8dc3

Please sign in to comment.