slot_vector: Back to debug assert

This commit is contained in:
IndecisiveTurtle 2024-08-23 13:50:25 +03:00
parent 95a97723ba
commit f5bf701618
1 changed files with 3 additions and 3 deletions

View File

@ -107,9 +107,9 @@ private:
}
void ValidateIndex([[maybe_unused]] SlotId id) const noexcept {
ASSERT(id);
ASSERT(id.index / 64 < stored_bitset.size());
ASSERT(((stored_bitset[id.index / 64] >> (id.index % 64)) & 1) != 0);
DEBUG_ASSERT(id);
DEBUG_ASSERT(id.index / 64 < stored_bitset.size());
DEBUG_ASSERT(((stored_bitset[id.index / 64] >> (id.index % 64)) & 1) != 0);
}
[[nodiscard]] u32 FreeValueIndex() noexcept {