Explorar o código

Merge pull request #307 from qnzhou/master

Assign to scalar bug

Former-commit-id: acbf41491be1a9c516bf5b4deed173f4c5e8b84f
Alec Jacobson %!s(int64=9) %!d(string=hai) anos
pai
achega
539fc3607e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      include/igl/copyleft/cgal/assign_scalar.cpp

+ 2 - 2
include/igl/copyleft/cgal/assign_scalar.cpp

@@ -38,10 +38,10 @@ IGL_INLINE void igl::copyleft::cgal::assign_scalar(
   const auto interval = CGAL::to_interval(cgal);
   d = interval.first;
   do {
-      const float next = nextafter(d, interval.second);
+      const float next = nextafter(d, float(interval.second));
       if (CGAL::abs(cgal-d) < CGAL::abs(cgal-next)) break;
       d = next;
-  } while (d < interval.second);
+  } while (d < float(interval.second));
 }
 
 IGL_INLINE void igl::copyleft::cgal::assign_scalar(