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 {
298298 #[ cfg( target_env = "msvc" ) ]
299299 return ( self as f64 ) . floor ( ) as f32 ;
300300 #[ cfg( not( target_env = "msvc" ) ) ]
301- return unsafe { intrinsics:: floorf32 ( f ) } ;
301+ return unsafe { intrinsics:: floorf32 ( self ) } ;
302302 }
303303
304304 /// Returns the smallest integer greater than or equal to a number.
@@ -666,9 +666,9 @@ impl f32 {
666666 pub fn log10 ( self ) -> f32 {
667667 // see notes above in `floor`
668668 #[ cfg( target_env = "msvc" ) ]
669- return ( f as f64 ) . log10 ( ) as f32 ;
669+ return ( self as f64 ) . log10 ( ) as f32 ;
670670 #[ cfg( not( target_env = "msvc" ) ) ]
671- return unsafe { intrinsics:: log10f32 ( f ) } ;
671+ return unsafe { intrinsics:: log10f32 ( self ) } ;
672672 }
673673
674674 /// Converts radians to degrees.
You can’t perform that action at this time.
0 commit comments