Skip to content
Snippets Groups Projects
Commit a7f1a6a2 authored by Max Kahnt's avatar Max Kahnt
Browse files

Fix warnings: initialization order and unsigned comparison.

parent 7aeb10ff
No related branches found
No related tags found
No related merge requests found
...@@ -49,8 +49,8 @@ public: ...@@ -49,8 +49,8 @@ public:
*/ */
IndexedSliceIterator(const BaseIterator& it, size_type index, size_type itStride=1, size_type indexStride=1) : IndexedSliceIterator(const BaseIterator& it, size_type index, size_type itStride=1, size_type indexStride=1) :
it_(it), it_(it),
index_(index),
itStride_(itStride), itStride_(itStride),
index_(index),
indexStride_(indexStride) indexStride_(indexStride)
{} {}
...@@ -70,7 +70,7 @@ public: ...@@ -70,7 +70,7 @@ public:
void increment() void increment()
{ {
index_ += indexStride_; index_ += indexStride_;
for(int i=0; i!=itStride_; ++i) for(size_type i=0; i != itStride_; ++i)
++it_; ++it_;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment