aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Pall <mike>2011-01-02 22:20:08 +0100
committerMike Pall <mike>2011-01-02 22:20:08 +0100
commit331b14873731a4377b7487a247a33dfc6fba1f0b (patch)
tree9792a00ed964464d9857ba9e303a14649e54d6d3 /lib
parente66b5b6eeefa0cadfd80a859c71d41c2f9e076b8 (diff)
downloadluajit-331b14873731a4377b7487a247a33dfc6fba1f0b.tar.gz
luajit-331b14873731a4377b7487a247a33dfc6fba1f0b.tar.bz2
luajit-331b14873731a4377b7487a247a33dfc6fba1f0b.zip
Use cdata to pass IR_KINT64 to -jdump.
Diffstat (limited to 'lib')
-rw-r--r--lib/dump.lua3
1 files changed, 3 insertions, 0 deletions
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)
295 s = format("[%p]", k) 295 s = format("[%p]", k)
296 if s == "[0x00000000]" then s = "NULL" end 296 if s == "[0x00000000]" then s = "NULL" end
297 end 297 end
298 elseif t == 21 then -- int64_t
299 s = sub(tostring(k), 1, -3)
300 if sub(s, 1, 1) ~= "-" then s = "+"..s end
298 else 301 else
299 s = tostring(k) -- For primitives. 302 s = tostring(k) -- For primitives.
300 end 303 end