about summary refs log tree commit diff
path: root/src/libexpr/nixexpr.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-08-04T17·07+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-08-04T17·07+0000
commit1854f84e830a5282ae1ad1d0c85ed641af6bcf33 (patch)
treea28dae68b698b6c2ebcf9d56937b26e108010b9c /src/libexpr/nixexpr.hh
parentdcff8cdb76b37da8978fecee3398d3b541d11ccb (diff)
* Fix a few warnings.
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 3fd22ecfed57..28ac35e604ec 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;
     }
 };