about summary refs log tree commit diff
path: root/src/libexpr/nixexpr.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-04-22T15·08+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-04-22T15·08+0000
commit0bc468f195e37a8a5f4f8b36ae6c92459e8ca652 (patch)
treef4057161b6bb181e2899dbe85816e68819327097 /src/libexpr/nixexpr.hh
parentee0384fb966b7a9bd202fa6fb447788be30c4ce4 (diff)
* Simplify the implementation of `with'. This gives a 7% speedup in
  evaluating the NixOS system configuration.

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 4da77ee5861a..2d328d382c8d 100644
--- a/src/libexpr/nixexpr.hh
+++ b/src/libexpr/nixexpr.hh
@@ -184,7 +184,7 @@ struct ExprWith : Expr
 {
     Pos pos;
     Expr * attrs, * body;
-    int prevWith;
+    unsigned int prevWith;
     ExprWith(const Pos & pos, Expr * attrs, Expr * body) : pos(pos), attrs(attrs), body(body) { };
     COMMON_METHODS
 };