aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/nixexpr.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/nixexpr.hh')
-rw-r--r--src/libexpr/nixexpr.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh
index 3fd22ecfe..28ac35e60 100644
--- a/src/libexpr/nixexpr.hh
+++ b/src/libexpr/nixexpr.hh
@@ -50,7 +50,7 @@ struct Substitution
{
Expr x;
for (const Substitution * s(this); s; s = s->prev)
- if (x = s->map->get(name)) return x;
+ if ((x = s->map->get(name))) return x;
return 0;
}
};