authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-06-19 05:58:47+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-06-19 05:59:21+02:00
logaf88310caf86b1b1e84d9f0764af522b402241b2
tree18eb368716b288e06bc187a55ad3b7b371bbbe4e
parent787a2c9d7a5fd0f6aaa10a406cda5bd2f4eb33a7
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.os.linux: fix kernel_timespec.nsec to be isize

Only kernel_timespec.sec should be unconditionally i64.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/os/linux.zig+1-1
...@@ -9438,7 +9438,7 @@ pub const timezone = extern struct {...@@ -9438,7 +9438,7 @@ pub const timezone = extern struct {
9438/// The timespec struct used by the kernel.9438/// The timespec struct used by the kernel.
9439pub const kernel_timespec = extern struct {9439pub const kernel_timespec = extern struct {
9440 sec: i64,9440 sec: i64,
9441 nsec: i64,9441 nsec: isize,
94429442
9443 /// For use with `utimensat` and `futimens`.9443 /// For use with `utimensat` and `futimens`.
9444 pub const NOW: timespec = .{9444 pub const NOW: timespec = .{