From: eck Date: Mon, 23 Apr 1990 13:33:07 +0000 (+0000) Subject: result of sizeof() is 'unsigned int' (for backward compatibility) X-Git-Tag: release-5-5~1734 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=81b7f67cb4b459bdaddb27e1bb328c79b496306a;p=ack.git result of sizeof() is 'unsigned int' (for backward compatibility) --- diff --git a/lang/cem/cemcom.ansi/ch3mon.c b/lang/cem/cemcom.ansi/ch3mon.c index 08a2fc4fe..dc3463c2c 100644 --- a/lang/cem/cemcom.ansi/ch3mon.c +++ b/lang/cem/cemcom.ansi/ch3mon.c @@ -153,7 +153,7 @@ ch3mon(oper, expp) (arith)((*expp)->SG_LEN) : size_of_type((*expp)->ex_type, symbol2str((*expp)->ex_type->tp_fund)) - , (int_size == pointer_size ? UNSIGNED : ULONG)); + , UNSIGNED); expr->ex_flags |= EX_SIZEOF; free_expression(*expp); *expp = expr; diff --git a/lang/cem/cemcom.ansi/expression.g b/lang/cem/cemcom.ansi/expression.g index b7310535d..ec110ebc5 100644 --- a/lang/cem/cemcom.ansi/expression.g +++ b/lang/cem/cemcom.ansi/expression.g @@ -148,8 +148,7 @@ size_of(register struct expr **expp;) [%if (first_of_type_specifier(AHEAD) && AHEAD != IDENTIFIER) cast(&tp) { - *expp = intexpr(size_of_type(tp, "type"), - (int_size == pointer_size ? UNSIGNED : ULONG)); + *expp = intexpr(size_of_type(tp, "type"), UNSIGNED); (*expp)->ex_flags |= EX_SIZEOF; } |