about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2014-10-17 09:10:34 -0400
committerNiko Matsakis <niko@alum.mit.edu>2014-10-21 12:32:36 -0400
commit98e237a681c798ef6850395cb8483b82fc844452 (patch)
tree70e5b9749c987db88ee7ee3239b599e176ab19f7
parentdad2db7c83de71063b9311eb3e41bdf4027616f6 (diff)
Correct case where the old version of method lookup was incorrectly matching,
as far as I can tell.
-rw-r--r--src/libcore/num/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index 42ea138acd4..3dceb42e206 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -1374,7 +1374,7 @@ macro_rules! checkeddiv_int_impl(
                 if *v == 0 || (*self == $min && *v == -1) {
                     None
                 } else {
-                    Some(self / *v)
+                    Some(*self / *v)
                 }
             }
         }
@@ -1395,7 +1395,7 @@ macro_rules! checkeddiv_uint_impl(
                 if *v == 0 {
                     None
                 } else {
-                    Some(self / *v)
+                    Some(*self / *v)
                 }
             }
         }