Browse Source

assertion bug and too large allocation

Alec Jacobson 2 years ago
parent
commit
fd16e24391
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/ismember_rows.cpp

+ 1 - 1
include/igl/ismember_rows.cpp

@@ -80,7 +80,7 @@ IGL_INLINE void igl::ismember_rows(
     bool past = false;
     for(int a = 0;a<sA.rows();a++)
     {
-      assert(bi < sB.rows());
+      assert(past || (bi < sB.rows()));
       while(!past && row_greater_than(a,bi))
       {
         bi++;