Correct case where the old version of method lookup was incorrectly matching,

as far as I can tell.
This commit is contained in:
Niko Matsakis 2014-10-17 09:10:34 -04:00
parent dad2db7c83
commit 98e237a681
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}
}