diff options
author | David Robillard <d@drobilla.net> | 2009-06-25 20:34:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-06-25 20:34:39 +0000 |
commit | 755c9629ec34ca5536a49d88821b8b11460756ce (patch) | |
tree | abe329d31c2111376e13141e0ec90a55e2e2db13 /tuplr.cpp | |
parent | c465702dbeb1ea63a356146403eee668fb59371d (diff) | |
download | resp-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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |