aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/nixexpr.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-12-13 19:20:48 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-12-13 19:20:48 +0100
commitcc6406cc598bff1f395616ee13716ac9a3510097 (patch)
tree756eb7a967867069469d89650d36e6a90eec926f /src/libexpr/nixexpr.cc
parent2567b74c66ed52f752578373d4ec81ac2f09d6f0 (diff)
parent9d67332e4b8d75a101b8cf6e1d7e4dc8e99e964a (diff)
Merge branch 'better-interpolation-error-location' of https://github.com/greedy/nix
Diffstat (limited to 'src/libexpr/nixexpr.cc')
-rw-r--r--src/libexpr/nixexpr.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/nixexpr.cc b/src/libexpr/nixexpr.cc
index 57c2f6e44..a75357871 100644
--- a/src/libexpr/nixexpr.cc
+++ b/src/libexpr/nixexpr.cc
@@ -191,7 +191,7 @@ void ExprConcatStrings::show(std::ostream & str) const
str << "(";
for (auto & i : *es) {
if (first) first = false; else str << " + ";
- str << *i;
+ str << i.second;
}
str << ")";
}
@@ -439,7 +439,7 @@ void ExprOpNot::bindVars(const StaticEnv & env)
void ExprConcatStrings::bindVars(const StaticEnv & env)
{
for (auto & i : *es)
- i->bindVars(env);
+ i.second->bindVars(env);
}
void ExprPos::bindVars(const StaticEnv & env)