From f20166d2de87b56c88e37d6cd458888980d32430 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 3 Feb 2025 11:03:51 +0100 Subject: [PATCH] Fix AVX512-FP16 build Was missing explicit conversion from float to FastType when FastType isn't float. Pick-to: 6.8 Fixes: QTBUG-133430 Change-Id: I227558f6ecc1018158c88514dbb23bfe095ef77f Reviewed-by: Thiago Macieira Reviewed-by: Eirik Aavitsland (cherry picked from commit d076420bb0740e0410a886fc2feb5fcf8b729f4d) Reviewed-by: Qt Cherry-pick Bot --- src/gui/painting/qrgbafloat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/painting/qrgbafloat.h b/src/gui/painting/qrgbafloat.h index da74328f718..f481b285f67 100644 --- a/src/gui/painting/qrgbafloat.h +++ b/src/gui/painting/qrgbafloat.h @@ -99,7 +99,7 @@ public: return QRgbaFloat{}; // default-initialization: zeroes if (a >= F{1.0f}) return *this; - const FastType ia = 1.0f / a; + const FastType ia = FastType(1.0f) / FastType(a); return QRgbaFloat{F(r * ia), F(g * ia), F(b * ia), F(a)}; } constexpr bool operator==(QRgbaFloat f) const