commit 858d7eda6550ebb80e96c92b82c2e17ca5107b29 (tree)
parent c51e26887e839ba39f684a63f13dca4051030700
Author: Frank Denis <jedisct1@noreply.codeberg.org>
Date: Mon, 20 Apr 2026 16:58:12 +0200
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>
Diffstat:
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),