From 8ca0d6098dbb5c87f5a9bccbed695686c6fb86c4 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 29 Apr 2015 17:20:27 +0200 Subject: [PATCH] Fixed source location comparison operator. --- libevmcore/SourceLocation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libevmcore/SourceLocation.h b/libevmcore/SourceLocation.h index abe291d0f..35e3c0318 100644 --- a/libevmcore/SourceLocation.h +++ b/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); }