diff options
| author | 2025-10-23 19:30:09 +0200 | |
|---|---|---|
| committer | 2025-10-23 19:30:09 +0200 | |
| commit | 8e699c96e69bd15131cd351f198acb0b4bc1d4d6 (patch) | |
| tree | 3fe7da168afa6fe6863717f124ef52783de2dea0 /c | |
| parent | 4dae8d9ab482aa5ca0ef9d10de1b1200e99b5859 (diff) | |
c erratas
Diffstat (limited to 'c')
| -rw-r--r-- | c/c.c | 2 | ||||
| -rw-r--r-- | c/eval.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -2926,7 +2926,7 @@ condexprrec(struct function *fn, const struct expr *ex, struct condphis *phis, if (next && next != end) { putcondbranch(fn, r, next, end); } else { - assert(boolcon < 0); + //assert(boolcon < 0); putbranch(fn, end); } } @@ -87,7 +87,7 @@ unop(struct expr *ex, enum evalmode mode) /* *"s" */ off = 0; p = sub->s.p, len = sub->s.n; - csiz = typesize(sub->ty); + csiz = typesize(typechild(sub->ty)); } else if (sub->t == EADD && sub->sub[0].t == ESTRLIT && eval(&sub->sub[1], EVINTCONST)) { /* "s"[0] */ assert(sub->sub[1].t == ENUMLIT && isint(sub->sub[1].ty)); |