aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-31 07:05:04 +0000
committerDavid Robillard <d@drobilla.net>2010-12-31 07:05:04 +0000
commitfda0cd4431186161695e068267231fccd5199069 (patch)
tree35186809073fec8c6cffab5a81c72cc58a2c8b12
parent247b1706013397a4c7f41c354cb3d9d3257dfbfb (diff)
downloadresp-fda0cd4431186161695e068267231fccd5199069.tar.gz
resp-fda0cd4431186161695e068267231fccd5199069.tar.bz2
resp-fda0cd4431186161695e068267231fccd5199069.zip
Fix crash due to recursive initialization.
git-svn-id: http://svn.drobilla.net/resp/resp@392 ad02d1e2-f140-0410-9f75-f8b11f17cedd
-rw-r--r--src/lift.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lift.cpp b/src/lift.cpp
index 6ae8709..e55bdfe 100644
--- a/src/lift.cpp
+++ b/src/lift.cpp
@@ -136,7 +136,7 @@ lift_fn(CEnv& cenv, Code& code, const ATuple* fn) throw()
for (ATuple::const_iterator p = fn->prot()->begin(); p != fn->prot()->end(); ++p) {
const AST* paramType = (*tp++);
if (is_form(paramType, "Fn")) {
- const ATuple* fnType = new ATuple(cenv.tenv.var(), paramType->as_tuple(), fnType->loc);
+ const ATuple* fnType = new ATuple(cenv.tenv.var(), paramType->as_tuple(), paramType->loc);
paramType = tup((*p)->loc, cenv.tenv.Tup, fnType, NULL);
}
cenv.def((*p)->as_symbol(), *p, paramType, NULL);