Browse Source

Fix compilation error in face_occurrences.cpp (#1402)

* Fix compilation error

When IntegerC is long long int with gcc 7.4
Mathieu Lamarre 5 years ago
parent
commit
df5b320f57
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/face_occurrences.cpp

+ 1 - 1
include/igl/face_occurrences.cpp

@@ -48,7 +48,7 @@ IGL_INLINE void igl::face_occurrences(
   {
   {
     // sorted face should definitely be in counts map
     // sorted face should definitely be in counts map
     assert(counts.find(sortedF[i]) != counts.end());
     assert(counts.find(sortedF[i]) != counts.end());
-    C[i] = counts[sortedF[i]];
+    C[i] = static_cast<IntegerC>(counts[sortedF[i]]);
   }
   }
 }
 }