| ... | @@ -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). |
| 1196 | pub fn fromSysTime(hns: i64) i128 { | 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 | return adjusted_epoch * 100; | 1198 | return adjusted_epoch * 100; |
| 1199 | } | 1199 | } |
| 1200 | | 1200 | |