mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-11 09:35:12 +00:00
cm::enum_set: fix compilation warning
This commit is contained in:
@@ -58,7 +58,11 @@ public:
|
||||
|
||||
enum_set_iterator& operator--()
|
||||
{
|
||||
while (--this->Index >= 0 && !this->Set->test(this->Index))
|
||||
if (this->Index == 0) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
while (!this->Set->test(--this->Index) && this->Index != 0)
|
||||
;
|
||||
|
||||
return *this;
|
||||
|
||||
Reference in New Issue
Block a user