Browse Source

Fixed source location comparison operator.

cl-refactor
chriseth 10 years ago
parent
commit
8ca0d6098d
  1. 2
      libevmcore/SourceLocation.h

2
libevmcore/SourceLocation.h

@ -67,7 +67,7 @@ inline std::ostream& operator<<(std::ostream& _out, SourceLocation const& _locat
bool SourceLocation::operator<(SourceLocation const& _other) const
{
if (!!sourceName != !!_other.sourceName)
if (!sourceName || !_other.sourceName)
return int(!!sourceName) < int(!!_other.sourceName);
return make_tuple(*sourceName, start, end) < make_tuple(*_other.sourceName, _other.start, _other.end);
}

Loading…
Cancel
Save