mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-22 23:26:27 +02:00
poly2d/p2d_attrib.c (p2d_is_cw): check that the angle isn't NaN
Been had by this a little too often ...
This commit is contained in:
parent
155cfa3d44
commit
385bd601a6
@ -72,6 +72,7 @@ bool p2d_is_cw(const struct p2d *p)
|
||||
v = v->next;
|
||||
}
|
||||
while (v != p->v);
|
||||
assert(!isnan(a)); /* require -std=c99 or -std=gnu99 */
|
||||
return a < 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user