ref: d18c7f36b75feda3a11e54b00be8b131ea5caea2
parent: 8e0a983ff78f6c1e20f86b10489276491b4cb9f9
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jan 31 18:11:23 EST 2016
Fix typos.
--- a/parse/specialize.c
+++ b/parse/specialize.c
@@ -508,10 +508,10 @@
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]);