Compare commits

..

No commits in common. "173f14f8e23040f419089aaa5cc2c1abff66cd24" and "9b98fb4c36241696878931c8179c26e8be7447ff" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View file

@ -126,14 +126,14 @@ pub const Writer = struct {
var index: usize = buf.len; var index: usize = buf.len;
while (a >= 100) : (a = @divTrunc(a, 100)) { while (a >= 100) : (a = @divTrunc(a, 100)) {
index -= 2; index -= 2;
buf[index..][0..2].* = std.fmt.digits2(@as(u8, @intCast(a % 100))); buf[index..][0..2].* = std.fmt.digits2(@as(usize, @intCast(a % 100)));
} }
if (a < 10) { if (a < 10) {
index -= 1; index -= 1;
buf[index] = '0' + @as(u8, @intCast(a)); buf[index] = '0' + @as(u8, @intCast(a));
} else { } else {
index -= 2; index -= 2;
buf[index..][0..2].* = std.fmt.digits2(@as(u8, @intCast(a))); buf[index..][0..2].* = std.fmt.digits2(@as(usize, @intCast(a)));
} }
ctx.write(buf[index..]); ctx.write(buf[index..]);
} }

View file

@ -276,7 +276,7 @@ const Thread = struct {
if (entry) |e| t.scanOne(d, e.name) if (entry) |e| t.scanOne(d, e.name)
else { else {
t.sink.setDir(null); t.sink.setDir(null);
t.stack.pop().?.destroy(t); t.stack.pop().destroy(t);
} }
} }
} }