diff options
Diffstat (limited to 'src/prc1/print.c')
| -rw-r--r-- | src/prc1/print.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/prc1/print.c b/src/prc1/print.c index c40672d..2a2bfe3 100644 --- a/src/prc1/print.c +++ b/src/prc1/print.c @@ -58,15 +58,16 @@ static int settype(struct prv *p, const struct sym *s, struct prisym *ps) { const struct type *t = sym_type(p, s); const struct tk *tk = s->tk; + const struct sym *is; if (!t) { errloc(tk, "undefined reference to \"%s\"", tk->s); return -1; } - else if (inner(s)->type == SYM_LIT) + else if ((is = inner(s))->type == SYM_LIT) { - const struct lit *l = lit_push(tk, p); + const struct lit *l = lit_push(is->tk, p); if (!l) return -1; |
