Remove uneccessary condition in div_ceil
This commit is contained in:
parent
be99243afc
commit
5dece2b2bd
1 changed files with 1 additions and 1 deletions
|
|
@ -2726,7 +2726,7 @@ macro_rules! uint_impl {
|
|||
pub const fn div_ceil(self, rhs: Self) -> Self {
|
||||
let d = self / rhs;
|
||||
let r = self % rhs;
|
||||
if r > 0 && rhs > 0 {
|
||||
if r > 0 {
|
||||
d + 1
|
||||
} else {
|
||||
d
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue