| author | |
| committer | |
| log | 3052fd84c812280334245513d1edc631ae5e4ae2 |
| tree | 6c6fb494cac24150e8b1759bff4145f767215b46 |
| parent | c693c3ae5008c6ed14c4c2eb653b274b238bf6f1 |
1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/os/windows.zig+1-1| ... | ... | @@ -1194,7 +1194,7 @@ pub fn peb() *PEB { |
| 1194 | 1194 | /// This function returns the number of nanoseconds since the canonical epoch, |
| 1195 | 1195 | /// which is the POSIX one (Jan 01, 1970 AD). |
| 1196 | 1196 | pub fn fromSysTime(hns: i64) i128 { |
| 1197 | const adjusted_epoch = @as(i128, hns + std.time.epoch.windows) * (std.time.ns_per_s / 100); | |
| 1197 | const adjusted_epoch: i128 = hns + std.time.epoch.windows * (std.time.ns_per_s / 100); | |
| 1198 | 1198 | return adjusted_epoch * 100; |
| 1199 | 1199 | } |
| 1200 | 1200 |