summaryrefslogblamecommitdiff
path: root/www-client/chromium/files/chromium-sqrt.patch
blob: 4e391fdece3ab7e92e7061c5fafb71b0cdb35521 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                      
diff --git a/ui/gfx/color_utils.cc b/ui/gfx/color_utils.cc
index c868cd54b..ed33c5c18 100644
--- a/ui/gfx/color_utils.cc
+++ b/ui/gfx/color_utils.cc
@@ -431,7 +431,7 @@ SkColor SetDarkestColorForTesting(SkColor color) {
   // GetContrastRatio(kWhiteLuminance, g_luminance_midpoint).  The formula below
   // can be verified by plugging it into how GetContrastRatio() operates.
   g_luminance_midpoint =
-      std::sqrtf((dark_luminance + 0.05f) * (kWhiteLuminance + 0.05f)) - 0.05f;
+      (float)std::sqrt((dark_luminance + 0.05f) * (kWhiteLuminance + 0.05f)) - 0.05f;
 
   return previous_darkest_color;
 }