diff --git a/include/godot_cpp/core/math.hpp b/include/godot_cpp/core/math.hpp index 48d1283e..db97ba5d 100644 --- a/include/godot_cpp/core/math.hpp +++ b/include/godot_cpp/core/math.hpp @@ -561,7 +561,7 @@ inline T max(T a, T b) { template inline T sign(T x) { - return static_cast(x < 0 ? -1 : 1); + return static_cast(SIGN(x)); } template