Эх сурвалжийг харах

fix bug in return value

Former-commit-id: b323891a9843795c248e3cc1417abbf60d1dcd37
Alec Jacobson 10 жил өмнө
parent
commit
f6ca990f34
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      include/igl/mod.cpp

+ 1 - 1
include/igl/mod.cpp

@@ -23,7 +23,7 @@ template <typename DerivedA>
 IGL_INLINE Eigen::PlainObjectBase<DerivedA> igl::mod(
   const Eigen::PlainObjectBase<DerivedA> & A, const int base)
 {
-  DerivedA B;
+  Eigen::PlainObjectBase<DerivedA> B;
   mod(A,base,B);
   return B;
 }