diff --git a/fixed_wide/src/fixed.rs b/fixed_wide/src/fixed.rs index 14c8245..852ccff 100644 --- a/fixed_wide/src/fixed.rs +++ b/fixed_wide/src/fixed.rs @@ -65,7 +65,8 @@ impl Fixed<1,F>{ } #[inline] pub const fn to_raw(self)->i64{ - self.to_bits().to_bits().digits()[0] as i64 + let &[digit]=self.to_bits().to_bits().digits(); + digit as i64 } }