aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/value.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/value.hh')
-rw-r--r--src/libexpr/value.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/value.hh b/src/libexpr/value.hh
index 17a85f1de..dcef82e40 100644
--- a/src/libexpr/value.hh
+++ b/src/libexpr/value.hh
@@ -323,11 +323,11 @@ public:
}
}
- inline void mkThunk(Env * e, Expr * ex)
+ inline void mkThunk(Env * e, Expr & ex)
{
internalType = tThunk;
thunk.env = e;
- thunk.expr = ex;
+ thunk.expr = &ex;
}
inline void mkApp(Value * l, Value * r)