authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-25 00:37:27-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-25 00:37:47-04:00
log3052fd84c812280334245513d1edc631ae5e4ae2
tree6c6fb494cac24150e8b1759bff4145f767215b46
parentc693c3ae5008c6ed14c4c2eb653b274b238bf6f1

fix regression in std.os.windows.fromSysTime


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

lib/std/os/windows.zig+1-1
...@@ -1194,7 +1194,7 @@ pub fn peb() *PEB {...@@ -1194,7 +1194,7 @@ pub fn peb() *PEB {
1194/// This function returns the number of nanoseconds since the canonical epoch,1194/// This function returns the number of nanoseconds since the canonical epoch,
1195/// which is the POSIX one (Jan 01, 1970 AD).1195/// which is the POSIX one (Jan 01, 1970 AD).
1196pub fn fromSysTime(hns: i64) i128 {1196pub 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 return adjusted_epoch * 100;1198 return adjusted_epoch * 100;
1199}1199}
12001200