From 7e6c9c937026f8894b4009ae953e3f8c20e6f570 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Mon, 14 Apr 2025 23:46:47 +0200 Subject: [PATCH] Use Math::abs to avoid ambiguity with integer abs --- include/godot_cpp/variant/quaternion.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/godot_cpp/variant/quaternion.hpp b/include/godot_cpp/variant/quaternion.hpp index c93fe57e8..d0efa0867 100644 --- a/include/godot_cpp/variant/quaternion.hpp +++ b/include/godot_cpp/variant/quaternion.hpp @@ -149,7 +149,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. }