We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4057808 commit c44e326Copy full SHA for c44e326
src/libstd/num/f32.rs
@@ -298,7 +298,7 @@ impl f32 {
298
#[cfg(target_env = "msvc")]
299
return (self as f64).floor() as f32;
300
#[cfg(not(target_env = "msvc"))]
301
- return unsafe { intrinsics::floorf32(f) };
+ return unsafe { intrinsics::floorf32(self) };
302
}
303
304
/// Returns the smallest integer greater than or equal to a number.
@@ -666,9 +666,9 @@ impl f32 {
666
pub fn log10(self) -> f32 {
667
// see notes above in `floor`
668
669
- return (f as f64).log10() as f32;
+ return (self as f64).log10() as f32;
670
671
- return unsafe { intrinsics::log10f32(f) };
+ return unsafe { intrinsics::log10f32(self) };
672
673
674
/// Converts radians to degrees.
0 commit comments