From 58f5be45f499854f0163360db41120420ef0f9e2 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 20 Apr 2026 16:58:12 +0200 Subject: [PATCH] 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 --- lib/std/Io.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/Io.zig b/lib/std/Io.zig index ba20eccc4e..f1e91c5341 100644 --- a/lib/std/Io.zig +++ b/lib/std/Io.zig @@ -874,7 +874,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),