static cast an enum to int before multiplication

This commit is contained in:
Andreas Fabri 2021-11-03 23:17:01 +01:00
parent 3dd497f2b6
commit bd60afc8e5
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ public:
lp.set_a(index_x4, j, -1.0); // -x4
// 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);
}