Merge pull request 'io: make toClock compile' (#31966) from sinon/zig:fix-io-clock into master

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31966
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
This commit is contained in:
Frank Denis
2026-04-20 16:58:12 +02:00
+1 -1
View File
@@ -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),