Commit 1ab6c0610f7daa1dfb39e7c49b3402e47dc237c4

Authored by pranathivemuri
1 parent 52cb8dfd

int to unsigned int

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
stim/visualization/obj.h
@@ -552,7 +552,7 @@ public: @@ -552,7 +552,7 @@ public:
552 } 552 }
553 std::vector< stim::vec<T> > getAllV(std::vector<unsigned> vertexIndices){ 553 std::vector< stim::vec<T> > getAllV(std::vector<unsigned> vertexIndices){
554 std::vector< stim::vec<T> > allVerticesList; 554 std::vector< stim::vec<T> > allVerticesList;
555 - for (int i=0; i<numV(); i++) 555 + for (unsigned int i=0; i<numV(); i++)
556 { 556 {
557 vertexIndices[i] = i + 1; 557 vertexIndices[i] = i + 1;
558 } 558 }
@@ -563,7 +563,7 @@ public: @@ -563,7 +563,7 @@ public:
563 getIndex(std::vector< stim::vec<T> >allVerticesList, stim::vec<T> v0) 563 getIndex(std::vector< stim::vec<T> >allVerticesList, stim::vec<T> v0)
564 { 564 {
565 int result = 0; 565 int result = 0;
566 - for (int i = 0; i < allVerticesList.size() ; i++) 566 + for (unsigned int i = 0; i < allVerticesList.size() ; i++)
567 { 567 {
568 if (allVerticesList[i] == v0) 568 if (allVerticesList[i] == v0)
569 { 569 {