Merge topic 'enum_set-stabilization'

f42d0c9322 cm::enum_set: fix compilation warning

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7222
This commit is contained in:
Marc Chevrier
2022-05-01 09:44:11 +00:00
committed by Kitware Robot

View File

@@ -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;