Reduce component_iterator memory usage (#9205)

This commit is contained in:
J. Nick Koston
2025-06-27 08:56:54 +02:00
committed by GitHub
parent 13512440ac
commit 837dd46adf
2 changed files with 5 additions and 3 deletions

View File

@@ -375,7 +375,7 @@ void ComponentIterator::advance() {
}
if (advance_platform) {
this->state_ = static_cast<IteratorState>(static_cast<uint32_t>(this->state_) + 1);
this->state_ = static_cast<IteratorState>(static_cast<uint8_t>(this->state_) + 1);
this->at_ = 0;
} else if (success) {
this->at_++;