diff options
author | Mike Pall <mike> | 2011-01-02 22:20:08 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-01-02 22:20:08 +0100 |
commit | 331b14873731a4377b7487a247a33dfc6fba1f0b (patch) | |
tree | 9792a00ed964464d9857ba9e303a14649e54d6d3 /lib | |
parent | e66b5b6eeefa0cadfd80a859c71d41c2f9e076b8 (diff) | |
download | luajit-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.lua | 3 |
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 |