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 @@ -298,7 +298,7 @@ impl f32 {
298
298
#[ cfg( target_env = "msvc" ) ]
299
299
return ( self as f64 ) . floor ( ) as f32 ;
300
300
#[ cfg( not( target_env = "msvc" ) ) ]
301
- return unsafe { intrinsics:: floorf32 ( f ) } ;
301
+ return unsafe { intrinsics:: floorf32 ( self ) } ;
302
302
}
303
303
304
304
/// Returns the smallest integer greater than or equal to a number.
@@ -666,9 +666,9 @@ impl f32 {
666
666
pub fn log10 ( self ) -> f32 {
667
667
// see notes above in `floor`
668
668
#[ cfg( target_env = "msvc" ) ]
669
- return ( f as f64 ) . log10 ( ) as f32 ;
669
+ return ( self as f64 ) . log10 ( ) as f32 ;
670
670
#[ cfg( not( target_env = "msvc" ) ) ]
671
- return unsafe { intrinsics:: log10f32 ( f ) } ;
671
+ return unsafe { intrinsics:: log10f32 ( self ) } ;
672
672
}
673
673
674
674
/// Converts radians to degrees.
You can’t perform that action at this time.
0 commit comments