diff options
Diffstat (limited to 'c')
| -rw-r--r-- | c/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -290,7 +290,7 @@ eval(struct expr *ex, enum evalmode mode) return 1; } if (ex->t == ESTRLIT && mode > EVINTCONST) return 1; - if (mode == EVSTATICINI && isaddrconst(ex)) { + if (mode == EVSTATICINI && ex->ty.t == TYPTR && isaddrconst(ex)) { struct expr *e = ex; while (e->t == ECAST) e = e->sub; if (e != ex) { |