Minor fixup
This commit is contained in:
parent
711472f762
commit
28d9fe8594
6
bc.lua
6
bc.lua
@ -70,8 +70,8 @@ local function read_lj_uleb128_33(str, pos)
|
||||
end
|
||||
|
||||
local function read_lj_double(str, pos)
|
||||
local lo, p2 = read_lj_uleb128(pstr, pos)
|
||||
local hi, p3 = read_lj_uleb128(pstr, p2)
|
||||
local lo, p2 = read_lj_uleb128(str, pos)
|
||||
local hi, p3 = read_lj_uleb128(str, p2)
|
||||
local d = construct_double(lo, hi)
|
||||
if not d then
|
||||
return nil, ("Bad double: 0x%08x%08x"):format(hi, lo)
|
||||
@ -259,7 +259,7 @@ local function lj_parse_ktabk(_, pos, pstr, _)
|
||||
elseif tp == lj_ktab_type.int then
|
||||
return read_lj_uleb128(pstr, p2)
|
||||
elseif tp == lj_ktab_type.num then
|
||||
return read_double(pstr, p2)
|
||||
return read_lj_double(pstr, p2)
|
||||
elseif tp == lj_ktab_type["nil"] then
|
||||
return nil, p2
|
||||
elseif tp == lj_ktab_type["true"] then
|
||||
|
Loading…
x
Reference in New Issue
Block a user