-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix trunk swift-driver so it compiles again for armv7 on the CI
- Loading branch information
1 parent
c9e82f5
commit 043df19
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/Sources/SwiftDriver/Utilities/DateAdditions.swift b/Sources/SwiftDriver/Utilities/DateAdditions.swift | ||
index 59a1a107..8a902eaf 100644 | ||
--- a/Sources/SwiftDriver/Utilities/DateAdditions.swift | ||
+++ b/Sources/SwiftDriver/Utilities/DateAdditions.swift | ||
@@ -39,7 +39,7 @@ public struct TimePoint: Equatable, Comparable, Hashable { | ||
} | ||
|
||
extension TimePoint { | ||
- public static func seconds(_ value: Int) -> TimePoint { | ||
+ public static func seconds(_ value: Int64) -> TimePoint { | ||
precondition(value >= 0, | ||
"Duration value in seconds is \(value), but cannot be negative") | ||
return TimePoint(seconds: UInt64(value), nanoseconds: 0) | ||
@@ -97,7 +97,7 @@ extension TimePoint{ | ||
let result: UInt64 = (UInt64(ftTime.dwLowDateTime) << 0) | ||
+ (UInt64(ftTime.dwHighDateTime) << 32) | ||
// Windows ticks in 100 nanosecond intervals. | ||
- return .seconds(Int(result / 10_000_000)) | ||
+ return .seconds(Int64(result / 10_000_000)) | ||
#else | ||
var tv = timeval() | ||
gettimeofday(&tv, nil) |