From 46955be1e2cbd3406bbc8209dbece7238a984835 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Fri, 27 May 2011 01:56:25 +0200 Subject: Fix handling of number constants in snapshots in SPLIT pass. --- lib/dump.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/dump.lua b/lib/dump.lua index b049828f..5f32eb80 100644 --- a/lib/dump.lua +++ b/lib/dump.lua @@ -321,13 +321,11 @@ local function printsnap(tr, snap) local ref = band(sn, 0xffff) - 0x8000 -- REF_BIAS if ref < 0 then out:write(formatk(tr, ref)) + elseif band(sn, 0x80000) ~= 0 then -- SNAP_SOFTFPNUM + out:write(colorize(format("%04d/%04d", ref, ref+1), 14)) else - if band(sn, 0x80000) ~= 0 then -- SNAP_SOFTFPNUM - out:write(colorize(format("%04d/%04d", ref, ref+1), 14)) - else - local m, ot, op1, op2 = traceir(tr, ref) - out:write(colorize(format("%04d", ref), band(ot, 31))) - end + local m, ot, op1, op2 = traceir(tr, ref) + out:write(colorize(format("%04d", ref), band(ot, 31))) end out:write(band(sn, 0x10000) == 0 and " " or "|") -- SNAP_FRAME else -- cgit v1.2.3-55-g6feb