Skip to content

Commit

Permalink
[Ref] mpt/base/numeric.hpp: Small cleanup.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@20358 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Mar 15, 2024
1 parent 1a29d90 commit b72a604
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mpt/base/numeric.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ constexpr T saturate_align_up(T x, T target) {
if (x > (std::numeric_limits<T>::max() - (target - 1))) {
return std::numeric_limits<T>::max();
}
T result = ((x + (target - 1)) / target) * target;
return result;
return ((x + (target - 1)) / target) * target;
}

// Returns sign of a number (-1 for negative numbers, 1 for positive numbers, 0 for 0)
Expand Down

0 comments on commit b72a604

Please sign in to comment.