diff options
Diffstat (limited to 'c/c.c')
| -rw-r--r-- | c/c.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3255,7 +3255,7 @@ compileexpr(struct function *fn, const struct expr *ex, bool discard) r = expraddr(fn, sub); ins.l = genload(fn, sub->ty, r, sub->qual & QVOLATILE); if (ex->ty.t == TYPTR) - ins.r = mkintcon(KI4, typesize(typechild(ex->ty))); + ins.r = mkintcon(type2cls[targ_sizetype], typesize(typechild(ex->ty))); else ins.r = mkref(RICON, 1); genstore(fn, sub->ty, r, irbinop(fn, ins.op, ins.cls, ins.l, ins.r)); @@ -3267,7 +3267,7 @@ compileexpr(struct function *fn, const struct expr *ex, bool discard) r = expraddr(fn, sub); ins.l = genload(fn, sub->ty, r, sub->qual & QVOLATILE); if (ex->ty.t == TYPTR) - ins.r = mkintcon(KI4, typesize(typechild(ex->ty))); + ins.r = mkintcon(type2cls[targ_sizetype], typesize(typechild(ex->ty))); else ins.r = mkref(RICON, 1); q = irbinop(fn, ins.op, ins.cls, ins.l, ins.r); |