From 98e237a681c798ef6850395cb8483b82fc844452 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Fri, 17 Oct 2014 09:10:34 -0400 Subject: [PATCH] Correct case where the old version of method lookup was incorrectly matching, as far as I can tell. --- src/libcore/num/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 42ea138acd4d..3dceb42e2065 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) } } }