Browse Source

Avoid type possible incompatible type casting. clock_t here is long int but in the code int was used instead.

Kacper Pluta 6 years ago
parent
commit
6f08784072
1 changed files with 4 additions and 4 deletions
  1. 4 4
      include/igl/copyleft/comiso/miq.cpp

+ 4 - 4
include/igl/copyleft/comiso/miq.cpp

@@ -619,7 +619,7 @@ IGL_INLINE void igl::copyleft::comiso::PoissonSolver<DerivedV, DerivedF>::SolveP
 
 
   ///Initializing Matrix
   ///Initializing Matrix
 
 
-  int t0=clock();
+  clock_t t0 = clock();
 
 
   ///initialize the matrix ALLOCATING SPACE
   ///initialize the matrix ALLOCATING SPACE
   InitMatrix();
   InitMatrix();
@@ -647,19 +647,19 @@ IGL_INLINE void igl::copyleft::comiso::PoissonSolver<DerivedV, DerivedF>::SolveP
   if (_singularity_rounding)
   if (_singularity_rounding)
     AddSingularityRound();
     AddSingularityRound();
 
 
-  int t1=clock();
+  clock_t t1 = clock();
   if (DEBUGPRINT) printf("\n time:%d \n",t1-t0);
   if (DEBUGPRINT) printf("\n time:%d \n",t1-t0);
   if (DEBUGPRINT) printf("\n SOLVING \n");
   if (DEBUGPRINT) printf("\n SOLVING \n");
 
 
   MixedIntegerSolve(grid_res,direct_round,localIter);
   MixedIntegerSolve(grid_res,direct_round,localIter);
 
 
-  int t2=clock();
+  clock_t t2 = clock();
   if (DEBUGPRINT) printf("\n time:%d \n",t2-t1);
   if (DEBUGPRINT) printf("\n time:%d \n",t2-t1);
   if (DEBUGPRINT) printf("\n ASSIGNING COORDS \n");
   if (DEBUGPRINT) printf("\n ASSIGNING COORDS \n");
 
 
   MapCoords();
   MapCoords();
 
 
-  int t3=clock();
+  clock_t t3 = clock();
   if (DEBUGPRINT) printf("\n time:%d \n",t3-t2);
   if (DEBUGPRINT) printf("\n time:%d \n",t3-t2);
   if (DEBUGPRINT) printf("\n FINISHED \n");
   if (DEBUGPRINT) printf("\n FINISHED \n");
 }
 }