Explorar o código

fix bug in return value

Former-commit-id: b323891a9843795c248e3cc1417abbf60d1dcd37
Alec Jacobson %!s(int64=10) %!d(string=hai) anos
pai
achega
f6ca990f34
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 }