From 40b5468c6d39c3d316721a39da254b4387727c96 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Mon, 14 Apr 2025 23:54:07 +0200 Subject: [PATCH] Use Math::abs to avoid ambiguity with integer abs --- core/math/quaternion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/math/quaternion.h b/core/math/quaternion.h index 6dae7a795ffd..90175b66d1be 100644 --- a/core/math/quaternion.h +++ b/core/math/quaternion.h @@ -143,7 +143,7 @@ struct [[nodiscard]] Quaternion { Vector3 n0 = p_v0.normalized(); Vector3 n1 = p_v1.normalized(); real_t d = n0.dot(n1); - if (abs(d) > ALMOST_ONE) { + if (Math::abs(d) > ALMOST_ONE) { if (d >= 0) { return; // Vectors are same. }