Fix display of NULL (light)userdata in -jdump.

Thanks to Peter Cawley.
This commit is contained in:
Mike Pall 2016-03-28 22:15:13 +02:00
parent 7e05355a08
commit e23fc10883

View File

@ -324,7 +324,7 @@ local function formatk(tr, idx)
s = format("userdata:%p", k) s = format("userdata:%p", k)
else else
s = format("[%p]", k) s = format("[%p]", k)
if s == "[0x00000000]" then s = "NULL" end if s == "[NULL]" then s = "NULL" end
end end
elseif t == 21 then -- int64_t elseif t == 21 then -- int64_t
s = sub(tostring(k), 1, -3) s = sub(tostring(k), 1, -3)