Merge pull request #43903 from cptchuckles/fix-sign

Fix SGN macro
This commit is contained in:
Rémi Verschelde 2020-11-28 09:01:47 +01:00 committed by GitHub
commit bd84600132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@
#endif
#ifndef SGN
#define SGN(m_v) (((m_v) < 0) ? (-1.0) : (+1.0))
#define SGN(m_v) (((m_v) == 0) ? (0.0) : (((m_v) < 0) ? (-1.0) : (+1.0)))
#endif
#ifndef MIN