mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +00:00
[g++-warning-fix] Fix wrong enum compare
This commit is contained in:
@@ -775,7 +775,7 @@ namespace {
|
|||||||
BRepBuilderAPI_MakeEdge me(crv, v1, v2);
|
BRepBuilderAPI_MakeEdge me(crv, v1, v2);
|
||||||
if (!me.IsDone()) {
|
if (!me.IsDone()) {
|
||||||
const double eps2 = eps * eps;
|
const double eps2 = eps * eps;
|
||||||
if (me.Error() == BRepLib_PointProjectionFailed) {
|
if (me.Error() == BRepBuilderAPI_PointProjectionFailed) {
|
||||||
GeomAdaptor_Curve GAC(crv);
|
GeomAdaptor_Curve GAC(crv);
|
||||||
const gp_Pnt* ps[2] = { &p1, &p2 };
|
const gp_Pnt* ps[2] = { &p1, &p2 };
|
||||||
for (int i = 0; i < 2; ++i) {
|
for (int i = 0; i < 2; ++i) {
|
||||||
|
|||||||
Reference in New Issue
Block a user