aboutsummaryrefslogtreecommitdiffhomepage
path: root/c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-10-23 19:30:09 +0200
committerlemon <lsof@mailbox.org>2025-10-23 19:30:09 +0200
commit8e699c96e69bd15131cd351f198acb0b4bc1d4d6 (patch)
tree3fe7da168afa6fe6863717f124ef52783de2dea0 /c
parent4dae8d9ab482aa5ca0ef9d10de1b1200e99b5859 (diff)
c erratas
Diffstat (limited to 'c')
-rw-r--r--c/c.c2
-rw-r--r--c/eval.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/c/c.c b/c/c.c
index 55c275b..5ba6c2e 100644
--- a/c/c.c
+++ b/c/c.c
@@ -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);
}
}
diff --git a/c/eval.c b/c/eval.c
index 64eee42..1f61a7f 100644
--- a/c/eval.c
+++ b/c/eval.c
@@ -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));