File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ struct FloatingPointTests {
206206 }
207207
208208 if value. isNaN {
209- #expect( value1. isNaN)
209+ #expect( value1. isNaN, )
210210 #expect( value2. isNaN)
211211 if value. isSignalingNaN {
212212 #expect( value1. isSignalingNaN)
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ extension Array where Element == UInt8 {
146146 self . append ( contentsOf: bytes)
147147 }
148148 let signAndExponent =
149- value. exponentBitPattern | ( value. sign == . minus ? 1 : 0 << 31 )
149+ value. exponentBitPattern | ( value. sign == . minus ? 1 : 0 ) << 15
150150 Swift . withUnsafeBytes ( of: signAndExponent. littleEndian) { bytes in
151151 self . append ( contentsOf: bytes)
152152 }
@@ -155,7 +155,7 @@ extension Array where Element == UInt8 {
155155 init ( bigEndian value: Float80 ) {
156156 self = [ ]
157157 let signAndExponent =
158- value. exponentBitPattern | ( value. sign == . minus ? 1 : 0 << 31 )
158+ value. exponentBitPattern | ( value. sign == . minus ? 1 : 0 ) << 15
159159 Swift . withUnsafeBytes ( of: signAndExponent. bigEndian) { bytes in
160160 self . append ( contentsOf: bytes)
161161 }
You can’t perform that action at this time.
0 commit comments