summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse/gram.y b/parse/gram.y
index 6198b49..424538e 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -1081,7 +1081,9 @@ static void addtrait(Type *t, char *str)
for (i = 0; i < ntraittab; i++) {
if (!strcmp(namestr(traittab[i]->name), str)) {
- settrait(t, traittab[i]);
+ if (!t->trneed)
+ t->trneed = mkbs();
+ bsput(t->trneed, i);
return;
}
}