about summary refs log tree commit diff
path: root/third_party/nix/src/libexpr/symbol-table.hh
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-23T05·16+0100
committerVincent Ambo <tazjin@google.com>2020-05-23T05·18+0100
commit811c42d255b80b54f1d2f310f2673fa69c1be444 (patch)
tree6efaa510e7afbadffa7ca31ec0f62a915baa817b /third_party/nix/src/libexpr/symbol-table.hh
parent85a05a6f38b997082b4a88d7b80dfa1c1c35a88d (diff)
fix(3p/nix/libexpr): Ensure symbols are compared by value r/822
Diffstat (limited to 'third_party/nix/src/libexpr/symbol-table.hh')
-rw-r--r--third_party/nix/src/libexpr/symbol-table.hh2
1 files changed, 1 insertions, 1 deletions
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; }