From 811c42d255b80b54f1d2f310f2673fa69c1be444 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 23 May 2020 06:16:48 +0100 Subject: fix(3p/nix/libexpr): Ensure symbols are compared by value --- third_party/nix/src/libexpr/symbol-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/nix/src/libexpr/symbol-table.hh b/third_party/nix/src/libexpr/symbol-table.hh index df696c9e1ac8..c4c1163bed15 100644 --- a/third_party/nix/src/libexpr/symbol-table.hh +++ b/third_party/nix/src/libexpr/symbol-table.hh @@ -19,7 +19,7 @@ class Symbol { bool operator!=(const Symbol& s2) const { return s != s2.s; } - bool operator<(const Symbol& s2) const { return s < s2.s; } + bool operator<(const Symbol& s2) const { return *s < *s2.s; } operator const std::string&() const { return *s; } -- cgit 1.4.1