summaryrefslogtreecommitdiff
path: root/parse
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-03-10 22:24:18 -0700
committerOri Bernstein <ori@eigenstate.org>2015-03-10 22:24:18 -0700
commitdabf0985dfd46af098f4c2d3c5b817e9963b7498 (patch)
tree84f7203e8ad78def28e512fc3c7d0d7c9e727350 /parse
parent1b0b01d1692dd2f6d7737806cb2a7be04997d456 (diff)
downloadmc-dabf0985dfd46af098f4c2d3c5b817e9963b7498.tar.gz
Fix recursive case.
We don't want to infinitely recurse -- pass the visited set down in call cases.
Diffstat (limited to 'parse')
-rw-r--r--parse/type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/type.c b/parse/type.c
index b63230f..7b2433a 100644
--- a/parse/type.c
+++ b/parse/type.c
@@ -370,7 +370,7 @@ int hasparamsrec(Type *t, Bitset *visited)
break;
default:
for (i = 0; i < t->nsub; i++)
- if (hasparams(t->sub[i]))
+ if (hasparamsrec(t->sub[i], visited))
return 1;
break;
}