Change behavior of Math::sign to match Godot builtin

Fixes #551.
pull/1003/head
Erik Abair 2021-05-06 08:46:53 -07:00 committed by Rémi Verschelde
parent cf3d995e8c
commit d3f17c1dca
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ inline T max(T a, T b) {
template <typename T>
inline T sign(T x) {
return static_cast<T>(x < 0 ? -1 : 1);
return static_cast<T>(SIGN(x));
}
template <typename T>