about summary refs log tree commit diff
path: root/src/libexpr/eval.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-03-10T16·14+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-03-10T16·14+0000
commit2b3b6c9b3428856b215545efd3abb9b8f42cf8b4 (patch)
treebc0f69b7c07ca451d06dc868326215ab8dffc18a /src/libexpr/eval.cc
parent4ada6db1fc9cee9c0e51fb54af8770dd28243dff (diff)
* In theory, this should reduce the number of ATermMap
  re-allocations.

Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r--src/libexpr/eval.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index eac13c3fd980..fc51590b20cc 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -26,7 +26,7 @@ void EvalState::addPrimOp(const string & name,
 /* Substitute an argument set into the body of a function. */
 static Expr substArgs(Expr body, ATermList formals, Expr arg)
 {
-    ATermMap subs;
+    ATermMap subs(ATgetLength(formals) * 2);
     Expr undefined = makeUndefined();
 
     /* Get the formal arguments. */