mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
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:
+1
-1
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user