Changed externalBoundaryCheck logic
This commit is contained in:
@@ -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
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user