summaryrefslogtreecommitdiff
path: root/src/ninep/screen.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/ninep/screen.zig')
-rw-r--r--src/ninep/screen.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ninep/screen.zig b/src/ninep/screen.zig
index b991c3e4..ba676ded 100644
--- a/src/ninep/screen.zig
+++ b/src/ninep/screen.zig
@@ -95,7 +95,7 @@ const withTerm = th.withTerm;
const serialOf = th.serialOf;
const Node = tree.Node;
const Status = tree.Status;
-const screen_node = @intFromEnum(tree.TopFile.screen);
+const screen_node = @backingInt(tree.TopFile.screen);
test "listener addresses are readable canonical dials with bounded partial reads" {
const gpa = testing.allocator;
@@ -111,7 +111,7 @@ test "listener addresses are readable canonical dials with bounded partial reads
try testing.expectEqualStrings(expected, bytes);
try testing.expectError(error.ReadOnlyFilesystem, fs.write(p, path, ""));
}
- const node = @intFromEnum(tree.TopFile.listeners);
+ const node = @backingInt(tree.TopFile.listeners);
var off: usize = 0;
while (off < expected.len) {
const part = rd(p, node, off, 3);
@@ -333,7 +333,7 @@ test "a terminal's body is its logical lines: a row the terminal wrapped is join
const p = try th.withTerm(testing.allocator);
defer p.deinit();
const pane = p.panes[0].?;
- const long = "w" ** 50 ++ "x" ** 150; // wider than the pane: it wraps
+ const long = &@as([50]u8, @splat('w')) ++ &@as([150]u8, @splat('x')); // wider than the pane: it wraps
try testing.expect(long.len > pane.cols);
p.update(.{ .output = .{ .pane = 0, .bytes = long ++ "\r\nnext" } });
while (p.nextEffect()) |_| {}