浏览代码

a minor warning correction

Former-commit-id: fc1eb8170a17de9857501c3c42edc7e05d13dcb1
nico 10 年之前
父节点
当前提交
b076ab5cd5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/igl/cross_field_missmatch.cpp

+ 2 - 2
include/igl/cross_field_missmatch.cpp

@@ -94,11 +94,11 @@ public:
   inline void calculateMissmatch(Eigen::PlainObjectBase<DerivedO> &Handle_MMatch)
   {
     Handle_MMatch.setConstant(F.rows(),3,-1);
-    for (unsigned int i=0;i<F.rows();i++)
+    for (size_t i=0;i<F.rows();i++)
     {
       for (int j=0;j<3;j++)
       {
-        if (i==TT(i,j) || TT(i,j) == -1)
+        if (((int)i)==TT(i,j) || TT(i,j) == -1)
           Handle_MMatch(i,j)=0;
         else
           Handle_MMatch(i,j) = MissMatchByCross(i,TT(i,j));