mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
liblangutil: SourceLocation: Retricts == and != operator
This commit is contained in:
@@ -135,7 +135,8 @@ void checkAssemblyLocations(AssemblyItems const& _items, vector<SourceLocation>
|
||||
BOOST_CHECK_EQUAL(_items.size(), _locations.size());
|
||||
for (size_t i = 0; i < min(_items.size(), _locations.size()); ++i)
|
||||
{
|
||||
if (_items[i].location() != _locations[i])
|
||||
if (_items[i].location().start != _locations[i].start ||
|
||||
_items[i].location().end != _locations[i].end)
|
||||
{
|
||||
BOOST_CHECK_MESSAGE(false, "Location mismatch for item " + to_string(i) + ". Found the following locations:");
|
||||
printAssemblyLocations(_items);
|
||||
|
||||
Reference in New Issue
Block a user