From: ceriel Date: Mon, 6 Feb 1989 19:06:55 +0000 (+0000) Subject: fixed problem in sizeof() X-Git-Tag: release-5-5~2622 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c3f7993b1aa605bed80df9922015f97bd0fc52fc;p=ack.git fixed problem in sizeof() --- diff --git a/lang/cem/cemcom/ch7mon.c b/lang/cem/cemcom/ch7mon.c index acdf50e93..bfcec3628 100644 --- a/lang/cem/cemcom/ch7mon.c +++ b/lang/cem/cemcom/ch7mon.c @@ -148,7 +148,7 @@ ch7mon(oper, expp) if (ISNAME(*expp) && (*expp)->VL_IDF->id_def->df_formal_array) warning("sizeof formal array %s is sizeof pointer!", (*expp)->VL_IDF->id_text); - expr = intexpr((*expp)->ex_type == string_type ? + expr = intexpr((*expp)->ex_class == String ? (arith)((*expp)->SG_LEN) : size_of_type((*expp)->ex_type, "object"), INT);