| author | |
| committer | |
| log | 5547dc6ac414e0c7ff8fc1d7421cf0543e7286fa |
| tree | a47b85e9e52cd1f006c854ef51d2d8da51259a57 |
| parent | bbc0fc108ea25eda1058c343c17aa204adb0ec00 |
| signature |
1 files changed, 2 insertions(+), 2 deletions(-)
time.zig+2-2| ... | ... | @@ -235,8 +235,8 @@ pub const DateTime = struct { |
| 235 | 235 | |
| 236 | 236 | pub fn to_timespec(self: DateTime) sys.struct_timespec { |
| 237 | 237 | return .{ |
| 238 | .sec = self.toUnix(), | |
| 239 | .nsec = self.ms * ns_per_ms, | |
| 238 | .sec = @intCast(self.toUnix()), | |
| 239 | .nsec = @as(isize, self.ms) * ns_per_ms, | |
| 240 | 240 | }; |
| 241 | 241 | } |
| 242 | 242 |