authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-06 03:01:44 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-06 03:01:44 -07:00
log5547dc6ac414e0c7ff8fc1d7421cf0543e7286fa
treea47b85e9e52cd1f006c854ef51d2d8da51259a57
parentbbc0fc108ea25eda1058c343c17aa204adb0ec00
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

fix to_timespec()


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

time.zig+2-2
...@@ -235,8 +235,8 @@ pub const DateTime = struct {...@@ -235,8 +235,8 @@ pub const DateTime = struct {
235235
236 pub fn to_timespec(self: DateTime) sys.struct_timespec {236 pub fn to_timespec(self: DateTime) sys.struct_timespec {
237 return .{237 return .{
238 .sec = self.toUnix(),238 .sec = @intCast(self.toUnix()),
239 .nsec = self.ms * ns_per_ms,239 .nsec = @as(isize, self.ms) * ns_per_ms,
240 };240 };
241 }241 }
242242