Skip to content

Commit

Permalink
Remove uneccessary condition in div_ceil
Browse files Browse the repository at this point in the history
  • Loading branch information
TDecking authored Jun 29, 2024
1 parent be99243 commit 5dece2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/num/uint_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5dece2b

Please sign in to comment.