Skip to content
Snippets Groups Projects
Commit 11083511 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

WRG

parent f0fd9aab
No related branches found
No related tags found
No related merge requests found
......@@ -44,9 +44,9 @@ public:
inline TOutput operator ()(const TInput1& A, const TInput2& B) const
{
TOutput out;
out.SetRed(A.GetRed() * B);
out.SetGreen(A.GetGreen() * B);
out.SetBlue(A.GetBlue() * B);
out.SetRed( static_cast<typename TOutput::ValueType>(static_cast<double>(A.GetRed()) * static_cast<double>(B)) );
out.SetGreen( static_cast<typename TOutput::ValueType>(static_cast<double>(A.GetGreen()) * static_cast<double>(B)) );
out.SetBlue(static_cast<typename TOutput::ValueType>(static_cast<double>(A.GetBlue()) * static_cast<double>(B)));
return out;
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment