diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/typedefs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/typedefs.h b/core/typedefs.h index d7ee5ee40e..7c98bc37f7 100644 --- a/core/typedefs.h +++ b/core/typedefs.h @@ -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 |