File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -253,13 +253,13 @@ impl From<F56> for f64 {
253
253
let f64_biased_exponent: u64 = match { f56_biased_exponent } {
254
254
0b11_1111_1111 => {
255
255
// Special case of all [1]s meaning NaN or Infinity
256
- 0b111_1111_1111 as u64
256
+ 0b111_1111_1111_u64
257
257
}
258
258
0b00_0000_0000 => {
259
259
// Special case of all [0]s meaning 0 or subnormal
260
260
if f56_mantissa == 0u64 {
261
261
// the f56 was 0 so the f64 should be 0
262
- 0b000_0000_0000 as u64
262
+ 0b000_0000_0000_u64
263
263
} else {
264
264
// the f56 was subnormal so the f64 should interpret the exponent as -512
265
265
// note the slightly different addition of 1022 instead of 1023
@@ -276,7 +276,7 @@ impl From<F56> for f64 {
276
276
} ;
277
277
278
278
let f64_sign = f56_sign as u64 ;
279
- let f64_mantissa = f56_mantissa << 7 as u64 ; // we add 7 bits in mantissa, but they're all zeros
279
+ let f64_mantissa = f56_mantissa << 7_u64 ; // we add 7 bits in mantissa, but they're all zeros
280
280
let word: u64 = f64_sign << 63 | f64_biased_exponent << 52 | f64_mantissa;
281
281
f64:: from_be_bytes ( word. to_be_bytes ( ) )
282
282
}
You can’t perform that action at this time.
0 commit comments