aboutsummaryrefslogtreecommitdiffstats
path: root/tuplr.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-25 20:34:39 +0000
committerDavid Robillard <d@drobilla.net>2009-06-25 20:34:39 +0000
commit755c9629ec34ca5536a49d88821b8b11460756ce (patch)
treeabe329d31c2111376e13141e0ec90a55e2e2db13 /tuplr.cpp
parentc465702dbeb1ea63a356146403eee668fb59371d (diff)
downloadresp-755c9629ec34ca5536a49d88821b8b11460756ce.tar.gz
resp-755c9629ec34ca5536a49d88821b8b11460756ce.tar.bz2
resp-755c9629ec34ca5536a49d88821b8b11460756ce.zip
Sanify AST constructors.
git-svn-id: http://svn.drobilla.net/resp/tuplr@149 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'tuplr.cpp')
-rw-r--r--tuplr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tuplr.cpp b/tuplr.cpp
index 788cd0e..5b1a357 100644
--- a/tuplr.cpp
+++ b/tuplr.cpp
@@ -176,7 +176,7 @@ parseFn(PEnv& penv, const SExp& exp, void* arg)
else if (exp.size() < 3)
throw Error(exp.loc, "Missing function body");
SExp::const_iterator a = exp.begin(); ++a;
- AFn* ret = new AFn(exp.loc, penv.sym("fn"), new ATuple(penv.parseTuple(*a++)));
+ AFn* ret = tup<AFn>(exp.loc, penv.sym("fn"), new ATuple(penv.parseTuple(*a++)), 0);
while (a != exp.end())
ret->push_back(penv.parse(*a++));
return ret;