mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Oklab: Fix rollover error (#1529)
* oklab: Removed unnecessary type conversions * oklab: Fixed rollover error in color conversion
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include <utils/ColorSys.h>
|
||||
|
||||
/// Clamps between 0.f and 1.f. Should generally be branchless
|
||||
double clamp(double value)
|
||||
inline double clamp(double value)
|
||||
{
|
||||
return std::max(0.0, std::min(value, 1.0));
|
||||
}
|
||||
|
Reference in New Issue
Block a user