@@ -112,8 +112,8 @@ extension Duration {
112112 public static func seconds< T: BinaryInteger > ( _ seconds: T ) -> Duration {
113113 guard let high = Int64 ( exactly: seconds >> 64 ) else { fatalError ( ) }
114114 let low = UInt64 ( truncatingIfNeeded: seconds)
115- var lowScaled = low. multipliedFullWidth ( by: 1_000_000_000_000_000_000 )
116- var highScaled = high * 1_000_000_000_000_000_000
115+ let lowScaled = low. multipliedFullWidth ( by: 1_000_000_000_000_000_000 )
116+ let highScaled = high * 1_000_000_000_000_000_000
117117 return Duration ( _high: highScaled + Int64( lowScaled. high) , low: lowScaled. low)
118118 }
119119
@@ -158,8 +158,8 @@ extension Duration {
158158 ) -> Duration {
159159 guard let high = Int64 ( exactly: milliseconds >> 64 ) else { fatalError ( ) }
160160 let low = UInt64 ( truncatingIfNeeded: milliseconds)
161- var lowScaled = low. multipliedFullWidth ( by: 1_000_000_000_000_000 )
162- var highScaled = high * 1_000_000_000_000_000
161+ let lowScaled = low. multipliedFullWidth ( by: 1_000_000_000_000_000 )
162+ let highScaled = high * 1_000_000_000_000_000
163163 return Duration ( _high: highScaled + Int64( lowScaled. high) , low: lowScaled. low)
164164 }
165165
@@ -187,8 +187,8 @@ extension Duration {
187187 ) -> Duration {
188188 guard let high = Int64 ( exactly: microseconds >> 64 ) else { fatalError ( ) }
189189 let low = UInt64 ( truncatingIfNeeded: microseconds)
190- var lowScaled = low. multipliedFullWidth ( by: 1_000_000_000_000 )
191- var highScaled = high * 1_000_000_000_000
190+ let lowScaled = low. multipliedFullWidth ( by: 1_000_000_000_000 )
191+ let highScaled = high * 1_000_000_000_000
192192 return Duration ( _high: highScaled + Int64( lowScaled. high) , low: lowScaled. low)
193193 }
194194
@@ -216,8 +216,8 @@ extension Duration {
216216 ) -> Duration {
217217 guard let high = Int64 ( exactly: nanoseconds >> 64 ) else { fatalError ( ) }
218218 let low = UInt64 ( truncatingIfNeeded: nanoseconds)
219- var lowScaled = low. multipliedFullWidth ( by: 1_000_000_000 )
220- var highScaled = high * 1_000_000_000
219+ let lowScaled = low. multipliedFullWidth ( by: 1_000_000_000 )
220+ let highScaled = high * 1_000_000_000
221221 return Duration ( _high: highScaled + Int64( lowScaled. high) , low: lowScaled. low)
222222 }
223223}
0 commit comments