mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix display of NULL (light)userdata in -jdump.
Thanks to Peter Cawley.
This commit is contained in:
parent
7e05355a08
commit
e23fc10883
@ -324,7 +324,7 @@ local function formatk(tr, idx)
|
||||
s = format("userdata:%p", k)
|
||||
else
|
||||
s = format("[%p]", k)
|
||||
if s == "[0x00000000]" then s = "NULL" end
|
||||
if s == "[NULL]" then s = "NULL" end
|
||||
end
|
||||
elseif t == 21 then -- int64_t
|
||||
s = sub(tostring(k), 1, -3)
|
||||
|
Loading…
Reference in New Issue
Block a user