File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -206,15 +206,15 @@ struct FloatingPointTests {
206
206
}
207
207
208
208
if value. isNaN {
209
- #expect( value1. isNaN)
210
- #expect( value2. isNaN)
209
+ #expect( value1. isNaN, " little " )
210
+ #expect( value2. isNaN, " little " )
211
211
if value. isSignalingNaN {
212
212
#expect( value1. isSignalingNaN)
213
213
#expect( value2. isSignalingNaN)
214
214
}
215
215
} else {
216
- #expect( value1 == value)
217
- #expect( value2 == value)
216
+ #expect( value1 == value, " little " )
217
+ #expect( value2 == value, " little " )
218
218
}
219
219
}
220
220
@@ -225,15 +225,15 @@ struct FloatingPointTests {
225
225
}
226
226
227
227
if value. isNaN {
228
- #expect( value1. isNaN)
229
- #expect( value2. isNaN)
228
+ #expect( value1. isNaN, " big " )
229
+ #expect( value2. isNaN, " big " )
230
230
if value. isSignalingNaN {
231
231
#expect( value1. isSignalingNaN)
232
232
#expect( value2. isSignalingNaN)
233
233
}
234
234
} else {
235
- #expect( value1 == value)
236
- #expect( value2 == value)
235
+ #expect( value1 == value, " big " )
236
+ #expect( value2 == value, " big " )
237
237
}
238
238
}
239
239
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ extension Array where Element == UInt8 {
146
146
self . append ( contentsOf: bytes)
147
147
}
148
148
let signAndExponent =
149
- value. exponentBitPattern | ( value. sign == . minus ? 1 : 0 << 31 )
149
+ value. exponentBitPattern | ( value. sign == . minus ? 1 : 0 ) << 15
150
150
Swift . withUnsafeBytes ( of: signAndExponent. littleEndian) { bytes in
151
151
self . append ( contentsOf: bytes)
152
152
}
@@ -155,7 +155,7 @@ extension Array where Element == UInt8 {
155
155
init ( bigEndian value: Float80 ) {
156
156
self = [ ]
157
157
let signAndExponent =
158
- value. exponentBitPattern | ( value. sign == . minus ? 1 : 0 << 31 )
158
+ value. exponentBitPattern | ( value. sign == . minus ? 1 : 0 ) << 15
159
159
Swift . withUnsafeBytes ( of: signAndExponent. bigEndian) { bytes in
160
160
self . append ( contentsOf: bytes)
161
161
}
You can’t perform that action at this time.
0 commit comments