Fix build failure using clang compiler

This commit is contained in:
Nyall Dawson 2024-01-11 14:32:25 +10:00 committed by Jakub Melka
parent 3846c5187e
commit 6354e4cad1
1 changed files with 4 additions and 4 deletions

View File

@ -71,11 +71,11 @@ public:
{ {
if constexpr (index < FlatSize) if constexpr (index < FlatSize)
{ {
return m_flatBlock[size]; return m_flatBlock[size()];
} }
else else
{ {
return m_variableBlock[size - FlatSize]; return m_variableBlock[size() - FlatSize];
} }
} }
@ -84,11 +84,11 @@ public:
{ {
if constexpr (index < FlatSize) if constexpr (index < FlatSize)
{ {
return m_flatBlock[size]; return m_flatBlock[size()];
} }
else else
{ {
return m_variableBlock[size - FlatSize]; return m_variableBlock[size() - FlatSize];
} }
} }