mirror of https://github.com/CGAL/cgal
static cast an enum to int before multiplication
This commit is contained in:
parent
3dd497f2b6
commit
bd60afc8e5
|
|
@ -94,7 +94,7 @@ public:
|
||||||
lp.set_a(index_x4, j, -1.0); // -x4
|
lp.set_a(index_x4, j, -1.0); // -x4
|
||||||
|
|
||||||
// right hand side (>= -dj)
|
// right hand side (>= -dj)
|
||||||
FT dj = distance_to_origin(plane) * CGAL::sign(plane.d());
|
FT dj = distance_to_origin(plane) * static_cast<int>(CGAL::sign(plane.d()));
|
||||||
lp.set_b(j, -dj);
|
lp.set_b(j, -dj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue