about summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
authorvolth <volth@webmaster.ms>2018-07-07T23·30+0000
committerGitHub <noreply@github.com>2018-07-07T23·30+0000
commitc03d73c1cfbeb7c7d00a6b48111f152496e46c8f (patch)
tree55bd92f6956112a063c0da7527a516ae35274856 /src/libexpr
parent627e28ba332f21109d7eace8ba0a7932e4d98b2e (diff)
prim_map, prim_genList: no need to force function argument which will be stored in mkApp
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/primops.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index e7b319fea642..09b01cae8f73 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -1428,7 +1428,6 @@ static void prim_tail(EvalState & state, const Pos & pos, Value * * args, Value
 /* Apply a function to every element of a list. */
 static void prim_map(EvalState & state, const Pos & pos, Value * * args, Value & v)
 {
-    state.forceFunction(*args[0], pos);
     state.forceList(*args[1], pos);
 
     state.mkList(v, args[1]->listSize());
@@ -1556,7 +1555,6 @@ static void prim_all(EvalState & state, const Pos & pos, Value * * args, Value &
 
 static void prim_genList(EvalState & state, const Pos & pos, Value * * args, Value & v)
 {
-    state.forceFunction(*args[0], pos);
     auto len = state.forceInt(*args[1], pos);
 
     if (len < 0)