diff options
| author | 2025-11-16 17:32:53 +0100 | |
|---|---|---|
| committer | 2025-11-19 10:40:35 +0100 | |
| commit | 0db56689eb9f82a20331137111a8f2da2d759cca (patch) | |
| tree | 7fac4abddd98030e7c00c9f4139ab4cbac086d10 | |
| parent | f5296e1324f0ecf397e752793a9772e71a9ba31a (diff) | |
eval: fix b0c0f2d2d885 for ptr convertible
| -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 && ex->ty.t == TYPTR && isaddrconst(ex)) { + if (mode == EVSTATICINI && isptrcvt(ex->ty) && isaddrconst(ex)) { struct expr *e = ex; while (e->t == ECAST) e = e->sub; if (e != ex) { |