aboutsummaryrefslogtreecommitdiffstats
path: root/src/parse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.cpp')
-rw-r--r--src/parse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.cpp b/src/parse.cpp
index c7209aa..6271cad 100644
--- a/src/parse.cpp
+++ b/src/parse.cpp
@@ -40,7 +40,7 @@ macDef(PEnv& penv, const AST* exp)
return const_cast<AST*>(exp);
} else {
const ATuple* pat = name->to<const ATuple*>();
- name = pat->at(0);
+ name = pat->head();
// (def (f x) y) => (def f (fn (x) y))
ATuple* argsExp = new ATuple(exp->loc);
ATuple::const_iterator j = pat->begin();