mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix source location assertion in isoltest
This commit is contained in:
parent
adce9ca812
commit
0bed065ee7
@ -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<size_t>(error.locationStart) < source.length());
|
||||
assert(static_cast<size_t>(error.locationEnd) < source.length());
|
||||
assert(static_cast<size_t>(error.locationStart) <= source.length());
|
||||
assert(static_cast<size_t>(error.locationEnd) <= source.length());
|
||||
bool isWarning = error.type == "Warning";
|
||||
for (int i = error.locationStart; i < error.locationEnd; i++)
|
||||
if (isWarning)
|
||||
|
Loading…
Reference in New Issue
Block a user