Skip to content

Commit 3551370

Browse files
committed
---
yaml --- r: 42101 b: refs/heads/master c: a80a65b h: refs/heads/master i: 42099: dde1e92 v: v3
1 parent 9560140 commit 3551370

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 95b892c8a723ad88e868e3914c3d29a585008ac2
2+
refs/heads/master: a80a65b3b7affa9b070785bf2dd34a25aea3932a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/src/libstd/cmp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub trait FuzzyEq {
2424

2525
impl float: FuzzyEq {
2626
pure fn fuzzy_eq(&self, other: &float) -> bool {
27-
self.fuzzy_eq_eps(other, fuzzy_epsilon)
27+
self.fuzzy_eq_eps(other, &fuzzy_epsilon)
2828
}
2929

3030
pure fn fuzzy_eq_eps(&self, other: &float, epsilon: &float) -> bool {
@@ -34,7 +34,7 @@ impl float: FuzzyEq {
3434

3535
impl f32: FuzzyEq {
3636
pure fn fuzzy_eq(&self, other: &f32) -> bool {
37-
self.fuzzy_eq_eps(other, fuzzy_epsilon as f32)
37+
self.fuzzy_eq_eps(other, &(fuzzy_epsilon as f32))
3838
}
3939

4040
pure fn fuzzy_eq_eps(&self, other: &f32, epsilon: &f32) -> bool {
@@ -44,7 +44,7 @@ impl f32: FuzzyEq {
4444

4545
impl f64: FuzzyEq {
4646
pure fn fuzzy_eq(&self, other: &f64) -> bool {
47-
self.fuzzy_eq_eps(other, fuzzy_epsilon as f64)
47+
self.fuzzy_eq_eps(other, &(fuzzy_epsilon as f64))
4848
}
4949

5050
pure fn fuzzy_eq_eps(&self, other: &f64, epsilon: &f64) -> bool {

0 commit comments

Comments
 (0)