Преглед на файлове

Change arg to const & to avoid MSan issue. (#2415)

Jérémie Dumas преди 1 година
родител
ревизия
fac5d4a01d
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      include/igl/AABB.cpp
  2. 1 1
      include/igl/AABB.h

+ 1 - 1
include/igl/AABB.cpp

@@ -787,7 +787,7 @@ template <typename DerivedV, int DIM>
 IGL_INLINE void igl::AABB<DerivedV,DIM>::set_min(
   const RowVectorDIMS & /* p */,
   const Scalar sqr_d_candidate,
-  const int i_candidate,
+  const int & i_candidate,
   const RowVectorDIMS & c_candidate,
   Scalar & sqr_d,
   int & i,

+ 1 - 1
include/igl/AABB.h

@@ -451,7 +451,7 @@ private:
       IGL_INLINE void set_min(
         const RowVectorDIMS & p,
         const Scalar sqr_d_candidate,
-        const int i_candidate,
+        const int & i_candidate,
         const RowVectorDIMS & c_candidate,
         Scalar & sqr_d,
         int & i,