File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -129,15 +129,15 @@ macro_rules! other_constants {
129
129
( $type: ident) => {
130
130
const EXPLICIT_SIG_BITS : u8 = Self :: SIG_BITS - 1 ;
131
131
const MAX_EXP : i16 = ( 1 << ( Self :: EXP_BITS - 1 ) ) - 1 ;
132
- const MIN_EXP : i16 = -Self :: MAX_EXP + 1 ;
133
- const MAX_EXP_INT : i16 = Self :: MAX_EXP - ( Self :: SIG_BITS as i16 - 1 ) ;
132
+ const MIN_EXP : i16 = -< Self as RawFloat > :: MAX_EXP + 1 ;
133
+ const MAX_EXP_INT : i16 = < Self as RawFloat > :: MAX_EXP - ( Self :: SIG_BITS as i16 - 1 ) ;
134
134
const MAX_ENCODED_EXP : i16 = ( 1 << Self :: EXP_BITS ) - 1 ;
135
- const MIN_EXP_INT : i16 = Self :: MIN_EXP - ( Self :: SIG_BITS as i16 - 1 ) ;
135
+ const MIN_EXP_INT : i16 = < Self as RawFloat > :: MIN_EXP - ( Self :: SIG_BITS as i16 - 1 ) ;
136
136
const MAX_SIG : u64 = ( 1 << Self :: SIG_BITS ) - 1 ;
137
137
const MIN_SIG : u64 = 1 << ( Self :: SIG_BITS - 1 ) ;
138
138
139
- const INFINITY : Self = $crate :: $ type:: INFINITY ;
140
- const NAN : Self = $crate :: $ type:: NAN ;
139
+ const INFINITY : Self = $type:: INFINITY ;
140
+ const NAN : Self = $type:: NAN ;
141
141
const ZERO : Self = 0.0 ;
142
142
} ;
143
143
}
You can’t perform that action at this time.
0 commit comments