浏览代码

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;
 }