Browse Source

fix casting issue

Francis Williams 6 years ago
parent
commit
62a01167b6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      include/igl/min_quad_with_fixed.cpp

+ 3 - 1
include/igl/min_quad_with_fixed.cpp

@@ -64,7 +64,9 @@ IGL_INLINE bool igl::min_quad_with_fixed_precompute(
 
 
   // cache known
-  data.known = known;
+  // FIXME: This is *NOT* generic and introduces a copy.
+  data.known = known.template cast<int>();
+
   // get list of unknown indices
   data.unknown.resize(n-kr);
   std::vector<bool> unknown_mask;