mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
EnumMap: Fix typo
This commit is contained in:
parent
6d61e6a601
commit
ec1ed64832
@ -58,7 +58,7 @@ public:
|
|||||||
constexpr V& operator[](BitField<position, bits, T, StorageType> key)
|
constexpr V& operator[](BitField<position, bits, T, StorageType> key)
|
||||||
{
|
{
|
||||||
static_assert(1 << bits == s_size, "Unsafe indexing into EnumMap (may go out of bounds)");
|
static_assert(1 << bits == s_size, "Unsafe indexing into EnumMap (may go out of bounds)");
|
||||||
return m_array[static_cast<std::size_t>(key.value())];
|
return m_array[static_cast<std::size_t>(key.Value())];
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr bool InBounds(T key) const { return static_cast<std::size_t>(key) < s_size; }
|
constexpr bool InBounds(T key) const { return static_cast<std::size_t>(key) < s_size; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user