Fix read uleb
This commit is contained in:
parent
dd42c2a43f
commit
8b9eafe94c
|
|
@ -53,6 +53,7 @@ local function read_uleb128(fp)
|
|||
while not last_byte do
|
||||
local uleb_byte = read_u8(fp)
|
||||
res = bit.bor(res, bit.lshift(bit.band(uleb_byte, 0x7f), shift))
|
||||
shift = shift + 7
|
||||
|
||||
if bit.band(uleb_byte, 0x80) == 0 then
|
||||
last_byte = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue