zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit a0a36bf92e11ec0c2ff5d2a5302c9d4b1b3e1f7b (tree)
parent 76174e1bcef30f5194fb06f1240ff1433cffa9ef
Author: David Rubin <david@vortan.dev>
Date:   Sun, 19 Apr 2026 16:57:22 -0700

io: make toClock compile

Diffstat:
Mlib/std/Io.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/Io.zig b/lib/std/Io.zig @@ -890,7 +890,7 @@ pub const Clock = enum { if (t.clock == clock) return t; const now_old = t.clock.now(io); const now_new = clock.now(io); - const duration = now_old.durationTo(t); + const duration = now_old.durationTo(t.raw); return .{ .clock = clock, .raw = now_new.addDuration(duration),