Author: manx
Date: Fri Mar 15 13:57:29 2024
New Revision: 20360
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20360
Log:
Merged revision(s) 20358 from trunk/OpenMPT:
[Ref] mpt/base/numeric.hpp: Small cleanup.
........
Modified:
branches/OpenMPT-1.30/ (props changed)
branches/OpenMPT-1.30/src/mpt/base/numeric.hpp
Modified: branches/OpenMPT-1.30/src/mpt/base/numeric.hpp
==============================================================================
--- branches/OpenMPT-1.30/src/mpt/base/numeric.hpp Fri Mar 15 13:57:08 2024 (r20359)
+++ branches/OpenMPT-1.30/src/mpt/base/numeric.hpp Fri Mar 15 13:57:29 2024 (r20360)
@@ -86,8 +86,7 @@
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)
|