summaryrefslogtreecommitdiff
path: root/parse/specialize.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-02-06 15:22:33 -0800
committerOri Bernstein <ori@eigenstate.org>2016-02-06 15:22:33 -0800
commitf0f1654937b0bd8944189c15c76169ca02ff88e9 (patch)
tree5e349b8a2ddef384f22510873d0c6c18ccaaf5d9 /parse/specialize.c
parenta73b2d8351853bdfde84b2792b8b231472271284 (diff)
downloadmc-f0f1654937b0bd8944189c15c76169ca02ff88e9.tar.gz
Type matches for named types are on the args.
Diffstat (limited to 'parse/specialize.c')
-rw-r--r--parse/specialize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/specialize.c b/parse/specialize.c
index 3ef1164..806f2d5 100644
--- a/parse/specialize.c
+++ b/parse/specialize.c
@@ -499,7 +499,7 @@ int matchquality(Type *pat, Type *to)
if (pat->narg != to->narg)
return -1;
for (i = 0; i < pat->narg; i++) {
- q = matchquality(pat->sub[i], to->sub[i]);
+ q = matchquality(pat->arg[i], to->arg[i]);
if (q < 0)
return -1;
match += q;