mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2025-04-21 12:27:27 +03: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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user