mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-23 05:01:10 +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;
|
v = v->next;
|
||||||
}
|
}
|
||||||
while (v != p->v);
|
while (v != p->v);
|
||||||
|
assert(!isnan(a)); /* require -std=c99 or -std=gnu99 */
|
||||||
return a < 0;
|
return a < 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user