From 6354e4cad19bd6c92ccc4dc141517f5fa2d674a6 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Thu, 11 Jan 2024 14:32:25 +1000 Subject: [PATCH] Fix build failure using clang compiler --- Pdf4QtLibCore/sources/pdfflatarray.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Pdf4QtLibCore/sources/pdfflatarray.h b/Pdf4QtLibCore/sources/pdfflatarray.h index 2a9634f..8f1a0c4 100644 --- a/Pdf4QtLibCore/sources/pdfflatarray.h +++ b/Pdf4QtLibCore/sources/pdfflatarray.h @@ -71,11 +71,11 @@ public: { if constexpr (index < FlatSize) { - return m_flatBlock[size]; + return m_flatBlock[size()]; } else { - return m_variableBlock[size - FlatSize]; + return m_variableBlock[size() - FlatSize]; } } @@ -84,11 +84,11 @@ public: { if constexpr (index < FlatSize) { - return m_flatBlock[size]; + return m_flatBlock[size()]; } else { - return m_variableBlock[size - FlatSize]; + return m_variableBlock[size() - FlatSize]; } }