Changed externalBoundaryCheck logic

This commit is contained in:
Digital Artifex
2026-06-08 07:23:05 -04:00
parent 39a06e0e8c
commit 2debbf2102
@@ -176,11 +176,11 @@ private:
*/ */
auto externalBoundaryCheck(qsizetype index) -> bool auto externalBoundaryCheck(qsizetype index) -> bool
{ {
return !( return (
index < 0 || index > 0 &&
( (
m_totalCount != std::numeric_limits<qsizetype>::infinity() && m_totalCount == std::numeric_limits<qsizetype>::infinity() ||
index >= m_totalCount index < m_totalCount
) )
); );
} }