zig

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

commit 032e3c92547e33be0ad0f2c6bef1c1e2a51d505c (tree)
parent adc5a39de2a8d6da0d0785d43d01fde9fe8e23fe
Author: Aidan Welch <aidan@freedwave.com>
Date:   Tue,  2 Dec 2025 10:59:53 +0100

std.Io.Timestamp: when creating a Clock.Timestamp actually set .raw instead of the non-existant .nanoseconds

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 Timestamp = struct { } pub fn withClock(t: Timestamp, clock: Clock) Clock.Timestamp { - return .{ .nanoseconds = t.nanoseconds, .clock = clock }; + return .{ .raw = t, .clock = clock }; } pub fn fromNanoseconds(x: i96) Timestamp {