Make the constant double as well as it's compared with other doubles in the
code below.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65292
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Map primary saturation from [0, 1] to [.25, .75]
bool primary_is_gray = false;
// Map primary saturation from [0, 1] to [.25, .75]
bool primary_is_gray = false;
- const float gray_saturation_threshold = 0.01;
+ static const double gray_saturation_threshold = 0.01;
if(primary_hsl.saturation <= gray_saturation_threshold)
primary_is_gray = true;
else
if(primary_hsl.saturation <= gray_saturation_threshold)
primary_is_gray = true;
else