diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-21 14:38:16 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-21 14:44:48 -0300 |
| commit | d5c37d9122240fe95d308fbe15874e14dd786c5a (patch) | |
| tree | 3ed108d2af5bd7a5cb07491b16e855e5243b5d63 /9agents/src/active.zig | |
| parent | fe9772b178575fcab93de09fc61c2f13db7db1a8 (diff) | |
| download | cloud9-d5c37d9122240fe95d308fbe15874e14dd786c5a.tar.gz cloud9-d5c37d9122240fe95d308fbe15874e14dd786c5a.zip | |
Build with Zig 0.17
Diffstat (limited to '9agents/src/active.zig')
| -rw-r--r-- | 9agents/src/active.zig | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/9agents/src/active.zig b/9agents/src/active.zig index ebf7ed6..301e905 100644 --- a/9agents/src/active.zig +++ b/9agents/src/active.zig @@ -311,7 +311,6 @@ pub fn legalZmxName(name: []const u8) bool { return true; } - // ---- reading /proc and the harness stores ------------------------------------ /// Where the view reads from. Every path below is composed from these @@ -393,7 +392,7 @@ fn join(buf: []u8, parts: []const []const u8) ?[]const u8 { /// `<root>` of a harness, or null when it is not pinned. fn rootOf(s: Sources, k: Kind) ?[]const u8 { - const base = s.roots[@intFromEnum(k)]; + const base = s.roots[@backingInt(k)]; return if (base.len == 0) null else base; } @@ -872,7 +871,6 @@ fn sessionFile(kind: Kind, rel: []const u8) bool { }; } - // ---- fields derived when they are read --------------------------------------- /// The value of `key` in a NUL-separated environment block, as @@ -979,7 +977,6 @@ pub fn bootTime(io: Io, proc: []const u8) i64 { return 0; } - // ---- subagents ---------------------------------------------------------------- /// Longest subagent name answered. @@ -1168,7 +1165,7 @@ test "active: a zmx session name is checked before it is ever used" { try testing.expect(!legalZmxName("../escape")); try testing.expect(!legalZmxName("semi;colon")); try testing.expect(!legalZmxName("nul\x00byte")); - try testing.expect(!legalZmxName("x" ** 65)); + try testing.expect(!legalZmxName(&@as([65]u8, @splat('x')))); } test "active: a codex thread's rollout is found by the day its id was minted" { |
