summaryrefslogtreecommitdiff
path: root/anim/src/disasm.zig
diff options
context:
space:
mode:
Diffstat (limited to 'anim/src/disasm.zig')
-rw-r--r--anim/src/disasm.zig8
1 files changed, 3 insertions, 5 deletions
diff --git a/anim/src/disasm.zig b/anim/src/disasm.zig
index 6faaade..6c28516 100644
--- a/anim/src/disasm.zig
+++ b/anim/src/disasm.zig
@@ -158,11 +158,9 @@ pub const Disasm = struct {
};
var last_line: ?u32 = null;
- // A source of many lines (SQLite's) has wider numbers: what is
- // right of them moves right by as much.
- var widest: u32 = 0;
- for (merged) |row| widest = @max(widest, row.line orelse 0);
- const widen = rows.numberRoom(widest);
+ // A source of many lines (SQLite's) has wider numbers, as wide as
+ // its largest: what is right of them moves right by as much.
+ const widen = rows.numberRoom(rec.line_count);
// The thread's runs: of the line the mark leaves and of the one it
// goes to, each a span of rows; published sliding from the one to
// the other with the advance (`threadRuns`).