Commit f16b6165 authored by Alexis Girault's avatar Alexis Girault

COMP: Fix warnings on size_t

parent 2a7abfb0
......@@ -1209,9 +1209,9 @@ void testPbdCloth()
// c. Add connectivity data
std::vector<imstk::SurfaceMesh::TriangleArray> triangles;
for (int i = 0; i < nRows - 1; i++)
for (std::size_t i = 0; i < nRows - 1; i++)
{
for (int j = 0; j < nCols - 1; j++)
for (std::size_t j = 0; j < nCols - 1; j++)
{
imstk::SurfaceMesh::TriangleArray tri[2];
tri[0] = { { i*nCols + j, (i + 1)*nCols + j, i*nCols + j + 1 } };
......@@ -1346,9 +1346,9 @@ void testPbdCollision()
// c. Add connectivity data
std::vector<imstk::SurfaceMesh::TriangleArray> triangles;
for (int i = 0; i < nRows - 1; i++)
for (std::size_t i = 0; i < nRows - 1; i++)
{
for (int j = 0; j < nCols - 1; j++)
for (std::size_t j = 0; j < nCols - 1; j++)
{
imstk::SurfaceMesh::TriangleArray tri[2];
tri[0] = { { i*nCols + j, i*nCols + j + 1, (i + 1)*nCols + j } };
......@@ -1489,9 +1489,9 @@ void testPbdCollision()
// c. Add connectivity data
std::vector<imstk::SurfaceMesh::TriangleArray> triangles;
for (int i = 0; i < nRows - 1; i++)
for (std::size_t i = 0; i < nRows - 1; i++)
{
for (int j = 0; j < nCols - 1; j++)
for (std::size_t j = 0; j < nCols - 1; j++)
{
imstk::SurfaceMesh::TriangleArray tri[2];
tri[0] = { { i*nCols + j, i*nCols + j + 1, (i + 1)*nCols + j } };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment