Skip to content

Commit

Permalink
Fix build failure using clang compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and JakubMelka committed Jan 13, 2024
1 parent 3846c51 commit 6354e4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Pdf4QtLibCore/sources/pdfflatarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ class PDFFlatArray
{
if constexpr (index < FlatSize)
{
return m_flatBlock[size];
return m_flatBlock[size()];
}
else
{
return m_variableBlock[size - FlatSize];
return m_variableBlock[size() - FlatSize];
}
}

Expand All @@ -84,11 +84,11 @@ class PDFFlatArray
{
if constexpr (index < FlatSize)
{
return m_flatBlock[size];
return m_flatBlock[size()];
}
else
{
return m_variableBlock[size - FlatSize];
return m_variableBlock[size() - FlatSize];
}
}

Expand Down

0 comments on commit 6354e4c

Please sign in to comment.