diff --git a/test/tools/isoltest.cpp b/test/tools/isoltest.cpp index 7a147bd02..100fcbf0e 100644 --- a/test/tools/isoltest.cpp +++ b/test/tools/isoltest.cpp @@ -99,8 +99,8 @@ void SyntaxTestTool::printContract() const for (auto const& error: m_test->errorList()) if (error.locationStart >= 0 && error.locationEnd >= 0) { - assert(static_cast(error.locationStart) < source.length()); - assert(static_cast(error.locationEnd) < source.length()); + assert(static_cast(error.locationStart) <= source.length()); + assert(static_cast(error.locationEnd) <= source.length()); bool isWarning = error.type == "Warning"; for (int i = error.locationStart; i < error.locationEnd; i++) if (isWarning)