summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-02-06 22:38:29 -0800
committerOri Bernstein <ori@eigenstate.org>2016-02-07 01:16:49 -0800
commit03857943018a82e1101cecbb026b5e11f4061dc5 (patch)
treef3bec664245228aa862cf28f35d0a6aeca899d14 /6
parent061c7f286ebf2ee6e0afb0a0fb2b90397b848e23 (diff)
downloadmc-03857943018a82e1101cecbb026b5e11f4061dc5.tar.gz
Generic iterators now seem to work.
Diffstat (limited to '6')
-rw-r--r--6/simp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/simp.c b/6/simp.c
index 28548c6..2c9ff2f 100644
--- a/6/simp.c
+++ b/6/simp.c
@@ -507,7 +507,7 @@ static Node *itertraitfn(Srcloc loc, Trait *tr, char *fn, Type *ty)
name = declname(tr->funcs[i]);
if (!strcmp(fn, name)) {
proto = tr->funcs[i];
- dcl = htget(proto->decl.__impls, ty);
+ dcl = htget(proto->decl.impls, ty);
var = mkexpr(loc, Ovar, dcl->decl.name, NULL);
var->expr.type = codetype(dcl->decl.type);
var->expr.did = dcl->decl.did;