From 77d9508618bb027de1ea8103f44db48f592c5e06 Mon Sep 17 00:00:00 2001 From: ayeteadoe Date: Tue, 22 Jul 2025 10:01:09 -0700 Subject: [PATCH] LibWeb/CSS: Fix implicit narrowing cast in interpolate_rotate The changes introduced in 484a09d6a2c59c3ffdb903df777913ccbcf7ac79 broke the Windows LibWeb build, so this fixes that --- Libraries/LibWeb/CSS/Interpolation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/CSS/Interpolation.cpp b/Libraries/LibWeb/CSS/Interpolation.cpp index a5df26512f8..d416578e28a 100644 --- a/Libraries/LibWeb/CSS/Interpolation.cpp +++ b/Libraries/LibWeb/CSS/Interpolation.cpp @@ -224,7 +224,7 @@ static RefPtr interpolate_rotate(DOM::Element& element, Cal auto from_axis_angle = [](FloatVector3 const& axis, float angle) -> FloatVector4 { auto normalized = axis.normalized(); auto half_angle = angle / 2.0f; - auto sin_half_angle = sin(half_angle); + auto sin_half_angle = sinf(half_angle); FloatVector4 result { normalized.x() * sin_half_angle, normalized.y() * sin_half_angle, normalized.z() * sin_half_angle, cosf(half_angle) }; return result; };