소스 검색

fix bug in return value

Former-commit-id: b323891a9843795c248e3cc1417abbf60d1dcd37
Alec Jacobson 10 년 전
부모
커밋
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;
 }