that fixed the test case (why isn't sgn a standard function? :P)

This commit is contained in:
Bill Currie 2009-03-19 04:56:44 +00:00 committed by Jeff Teunissen
parent 3be88c3e1d
commit e992edaf31

View file

@ -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