summaryrefslogtreecommitdiff
path: root/src/cmd/8c/txt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/8c/txt.c')
-rw-r--r--src/cmd/8c/txt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/8c/txt.c b/src/cmd/8c/txt.c
index b2e0148a0..3a08da7cd 100644
--- a/src/cmd/8c/txt.c
+++ b/src/cmd/8c/txt.c
@@ -146,7 +146,9 @@ gclean(void)
continue;
if(s->type == types[TENUM])
continue;
+ textflag = s->dataflag;
gpseudo(AGLOBL, s, nodconst(s->type->width));
+ textflag = 0;
}
nextpc();
p->as = AEND;
@@ -372,7 +374,7 @@ regfree(Node *n)
if(n->op != OREGISTER && n->op != OINDREG)
goto err;
i = n->reg;
- if(i < 0 || i >= sizeof(reg))
+ if(i < 0 || i >= nelem(reg))
goto err;
if(reg[i] <= 0)
goto err;