@@ -43,13 +43,13 @@ public struct Duration: Sendable {
43
43
internal var _high : Int64
44
44
45
45
@inlinable
46
- internal init ( _low : UInt64 , high : Int64 ) {
47
- self . _low = _low
48
- self . _high = high
46
+ internal init ( _high : Int64 , low : UInt64 ) {
47
+ self . _low = low
48
+ self . _high = _high
49
49
}
50
50
51
51
internal init ( _attoseconds: _Int128 ) {
52
- self . init ( _low : _attoseconds. low , high : _attoseconds. high )
52
+ self . init ( _high : _attoseconds. high , low : _attoseconds. low )
53
53
}
54
54
55
55
/// Construct a `Duration` by adding attoseconds to a seconds value.
@@ -193,15 +193,15 @@ extension Duration {
193
193
}
194
194
195
195
@available ( SwiftStdlib 5 . 7 , * )
196
- extension Duration : Codable {
196
+ extension Duration : Codable {
197
197
@available ( SwiftStdlib 5 . 7 , * )
198
198
public init ( from decoder: Decoder ) throws {
199
199
var container = try decoder. unkeyedContainer ( )
200
200
let high = try container. decode ( Int64 . self)
201
201
let low = try container. decode ( UInt64 . self)
202
- self . init ( _attoseconds : _Int128 ( high: high , low: low) )
202
+ self . init ( _high : high, low: low)
203
203
}
204
-
204
+
205
205
@available ( SwiftStdlib 5 . 7 , * )
206
206
public func encode( to encoder: Encoder ) throws {
207
207
var container = encoder. unkeyedContainer ( )
@@ -211,7 +211,7 @@ extension Duration: Codable {
211
211
}
212
212
213
213
@available ( SwiftStdlib 5 . 7 , * )
214
- extension Duration : Hashable {
214
+ extension Duration : Hashable {
215
215
@available ( SwiftStdlib 5 . 7 , * )
216
216
public func hash( into hasher: inout Hasher ) {
217
217
hasher. combine ( _attoseconds)
0 commit comments