From 331b14873731a4377b7487a247a33dfc6fba1f0b Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sun, 2 Jan 2011 22:20:08 +0100 Subject: Use cdata to pass IR_KINT64 to -jdump. --- lib/dump.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/dump.lua') diff --git a/lib/dump.lua b/lib/dump.lua index 5c127ae9..fdb28833 100644 --- a/lib/dump.lua +++ b/lib/dump.lua @@ -295,6 +295,9 @@ local function formatk(tr, idx) s = format("[%p]", k) if s == "[0x00000000]" then s = "NULL" end end + elseif t == 21 then -- int64_t + s = sub(tostring(k), 1, -3) + if sub(s, 1, 1) ~= "-" then s = "+"..s end else s = tostring(k) -- For primitives. end -- cgit v1.2.3-55-g6feb