aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-05-25 00:37:27 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-05-25 00:37:47 -0400
commit3052fd84c812280334245513d1edc631ae5e4ae2 (patch)
tree6c6fb494cac24150e8b1759bff4145f767215b46 /lib/std/os
parentc693c3ae5008c6ed14c4c2eb653b274b238bf6f1 (diff)
downloadzig-3052fd84c812280334245513d1edc631ae5e4ae2.tar.gz
zig-3052fd84c812280334245513d1edc631ae5e4ae2.zip
fix regression in std.os.windows.fromSysTime
Diffstat (limited to 'lib/std/os')
-rw-r--r--lib/std/os/windows.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig
index e1d54743ab..baf4c70555 100644
--- a/lib/std/os/windows.zig
+++ b/lib/std/os/windows.zig
@@ -1194,7 +1194,7 @@ pub fn peb() *PEB {
/// This function returns the number of nanoseconds since the canonical epoch,
/// which is the POSIX one (Jan 01, 1970 AD).
pub fn fromSysTime(hns: i64) i128 {
- const adjusted_epoch = @as(i128, hns + std.time.epoch.windows) * (std.time.ns_per_s / 100);
+ const adjusted_epoch: i128 = hns + std.time.epoch.windows * (std.time.ns_per_s / 100);
return adjusted_epoch * 100;
}