Fix type-based colorization of snapshot slots in debug output.

This commit is contained in:
Mike Pall 2010-12-08 20:37:22 +01:00
parent d0b283e596
commit 70071241bf

View File

@ -307,7 +307,7 @@ local function printsnap(tr, snap)
out:write(formatk(tr, ref)) out:write(formatk(tr, ref))
else else
local m, ot, op1, op2 = traceir(tr, ref) local m, ot, op1, op2 = traceir(tr, ref)
out:write(colorize(format("%04d", ref), band(ot, 15))) out:write(colorize(format("%04d", ref), band(ot, 31)))
end end
out:write(band(sn, 0x10000) == 0 and " " or "|") -- SNAP_FRAME out:write(band(sn, 0x10000) == 0 and " " or "|") -- SNAP_FRAME
else else