Author: manx
Date: Fri Mar 15 13:56:44 2024
New Revision: 20358
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20358
Log:
[Ref] mpt/base/numeric.hpp: Small cleanup.
Modified:
trunk/OpenMPT/src/mpt/base/numeric.hpp
Modified: trunk/OpenMPT/src/mpt/base/numeric.hpp
==============================================================================
--- trunk/OpenMPT/src/mpt/base/numeric.hpp Fri Mar 15 13:24:06 2024 (r20357)
+++ trunk/OpenMPT/src/mpt/base/numeric.hpp Fri Mar 15 13:56:44 2024 (r20358)
@@ -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)
|