vcpkg/ports/qt5-webengine/build_3.patch

18 lines
1011 B
Diff
Raw Normal View History

diff --git a/src/3rdparty/chromium/third_party/blink/renderer/platform/graphics/lab_color_space.h b/src/3rdparty/chromium/third_party/blink/renderer/platform/graphics/lab_color_space.h
index 78c316e04..fdb0312e0 100644
--- a/src/3rdparty/chromium/third_party/blink/renderer/platform/graphics/lab_color_space.h
+++ b/src/3rdparty/chromium/third_party/blink/renderer/platform/graphics/lab_color_space.h
@@ -138,9 +138,9 @@ class LABColorSpace {
clamp(lab.Z(), -128.0f, 128.0f)};
return {
- invf((v.X() + 16.0f) / 116.0f + (v.Y() * 0.002f)) * kIlluminantD50.X(),
- invf((v.X() + 16.0f) / 116.0f) * kIlluminantD50.Y(),
- invf((v.X() + 16.0f) / 116.0f - (v.Z() * 0.005f)) * kIlluminantD50.Z()};
+ (float)(invf((v.X() + 16.0f) / 116.0f + (v.Y() * 0.002f)) * kIlluminantD50.X()),
+ (float)(invf((v.X() + 16.0f) / 116.0f) * kIlluminantD50.Y()),
+ (float)(invf((v.X() + 16.0f) / 116.0f - (v.Z() * 0.005f)) * kIlluminantD50.Z())};
}
private: