From 4082ff84e39923f5c4925d34ba02795c2cc5b1e5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 13 Aug 2010 11:57:45 +0000 Subject: [PATCH] Fix harmless MSVC warning about double to float conversion. 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 --- src/ribbon/art_msw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ribbon/art_msw.cpp b/src/ribbon/art_msw.cpp index 4041079aeb..ad494d5863 100644 --- a/src/ribbon/art_msw.cpp +++ b/src/ribbon/art_msw.cpp @@ -144,7 +144,7 @@ void wxRibbonMSWArtProvider::SetColourScheme( // 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 -- 2.47.2