From 566bce1a9d3bff9d74aea030c36797039e66f71b Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Sat, 18 May 2024 19:13:31 +0400 Subject: [PATCH] Refactoring --- .../LottieCpp/Sources/Lottie/Public/Primitives/Vectors.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/TelegramUI/Components/LottieCpp/Sources/Lottie/Public/Primitives/Vectors.mm b/submodules/TelegramUI/Components/LottieCpp/Sources/Lottie/Public/Primitives/Vectors.mm index 4f4cfa7e8f..277f8f5d69 100644 --- a/submodules/TelegramUI/Components/LottieCpp/Sources/Lottie/Public/Primitives/Vectors.mm +++ b/submodules/TelegramUI/Components/LottieCpp/Sources/Lottie/Public/Primitives/Vectors.mm @@ -198,7 +198,7 @@ inline bool isApproximatelyEqual(float value, float other) { return std::abs(value - other) <= FLT_EPSILON; } -static float SolveCubic(double a, double b, double c, double d) { +static float SolveCubic(float a, float b, float c, float d) { if (isApproximatelyEqual(a, 0.0f)) { return SolveQuadratic(b, c, d); }