mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
that fixed the test case (why isn't sgn a standard function? :P)
This commit is contained in:
parent
3be88c3e1d
commit
e992edaf31
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ typedef struct {
|
|||
static inline vec_t
|
||||
sgn (vec_t v)
|
||||
{
|
||||
return v < 0 ? -1 : (v > 0 ? 1 : -1);
|
||||
return v < 0 ? -1 : (v > 0 ? 1 : 0);
|
||||
}
|
||||
|
||||
static inline vec_t
|
||||
|
|
Loading…
Reference in a new issue