diff -r 37d3c819cafa -r 2837b549e616 src/colors.h --- a/src/colors.h Wed Jun 22 16:13:15 2022 +0300 +++ b/src/colors.h Wed Jun 22 16:53:35 2022 +0300 @@ -82,7 +82,7 @@ template constexpr T luma(T r, T g, T b) { - return 0.2126 * r + 0.7152 * g + 0.0722 * b; + return static_cast(0.2126 * r + 0.7152 * g + 0.0722 * b); } //! @brief Checks whether or not the specified color index is a direct color