Correct case where the old version of method lookup was incorrectly matching,
as far as I can tell.
This commit is contained in:
parent
dad2db7c83
commit
98e237a681
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user