Skip to content

Commit

Permalink
Merged revision(s) 20358 from trunk/OpenMPT:
Browse files Browse the repository at this point in the history
[Ref] mpt/base/numeric.hpp: Small cleanup.
........


git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.30@20360 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Mar 15, 2024
1 parent aafc2c3 commit 3ea7423
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 3ea7423

Please sign in to comment.