Skip to content

Commit 98e237a

Browse files
committed
Correct case where the old version of method lookup was incorrectly matching,
as far as I can tell.
1 parent dad2db7 commit 98e237a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/num/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ macro_rules! checkeddiv_int_impl(
13741374
if *v == 0 || (*self == $min && *v == -1) {
13751375
None
13761376
} else {
1377-
Some(self / *v)
1377+
Some(*self / *v)
13781378
}
13791379
}
13801380
}
@@ -1395,7 +1395,7 @@ macro_rules! checkeddiv_uint_impl(
13951395
if *v == 0 {
13961396
None
13971397
} else {
1398-
Some(self / *v)
1398+
Some(*self / *v)
13991399
}
14001400
}
14011401
}

0 commit comments

Comments
 (0)