1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2025-12-10 06:52:05 +01:00

Fix: BaseBitSet bit iteration for values which don't fit in 32 bits (#14757)

This commit is contained in:
Jonathan G Rennison
2025-11-04 19:23:18 +00:00
committed by GitHub
parent 06d8e039c6
commit 6d5f150b3d

View File

@@ -254,8 +254,8 @@ public:
return std::nullopt;
}
auto begin() const { return SetBitIterator<Tvalue_type>(this->data).begin(); }
auto end() const { return SetBitIterator<Tvalue_type>(this->data).end(); }
auto begin() const { return SetBitIterator<Tvalue_type, Tstorage>(this->data).begin(); }
auto end() const { return SetBitIterator<Tvalue_type, Tstorage>(this->data).end(); }
private:
Tstorage data; ///< Bitmask of values.