summaryrefslogtreecommitdiff
path: root/utils/8c/cgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/8c/cgen.c')
-rw-r--r--utils/8c/cgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/8c/cgen.c b/utils/8c/cgen.c
index 81521666..c8511e2c 100644
--- a/utils/8c/cgen.c
+++ b/utils/8c/cgen.c
@@ -895,7 +895,7 @@ cgen(Node *n, Node *nn)
regfree(&nod);
} else
gopcode(OFUNC, n->type, Z, l);
- if(REGARG && reg[REGARG])
+ if(REGARG>=0 && reg[REGARG])
reg[REGARG]--;
if(nn != Z) {
regret(&nod, n);