summaryrefslogtreecommitdiff
path: root/parse/specialize.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-31 23:11:23 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-31 23:11:23 -0800
commitd18c7f36b75feda3a11e54b00be8b131ea5caea2 (patch)
tree19eb0ef01a186df62e93b89ff39bb0888c1013e0 /parse/specialize.c
parent8e0a983ff78f6c1e20f86b10489276491b4cb9f9 (diff)
downloadmc-d18c7f36b75feda3a11e54b00be8b131ea5caea2.tar.gz
Fix typos.
Diffstat (limited to 'parse/specialize.c')
-rw-r--r--parse/specialize.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse/specialize.c b/parse/specialize.c
index 3530284..7874eee 100644
--- a/parse/specialize.c
+++ b/parse/specialize.c
@@ -508,10 +508,10 @@ int matchquality(Type *pat, Type *to)
break;
case Tyarray:
/* unsized arrays are ok */
- if (pat->size && to->asize) {
- if (!!litvaleq(a->asize->expr.args[0], b->asize->expr.args[0]))
+ if (pat->asize && to->asize) {
+ if (!!litvaleq(pat->asize->expr.args[0], to->asize->expr.args[0]))
return -1;
- } else if (pat->size != to->asize) {
+ } else if (pat->asize != to->asize) {
return -1;
}
else return matchquality(pat->sub[0], to->sub[0]);