result of sizeof() is 'unsigned int' (for backward compatibility)

This commit is contained in:
eck 1990-04-23 13:33:07 +00:00
parent 86188fb772
commit 81b7f67cb4
2 changed files with 2 additions and 3 deletions

View file

@ -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;

View file

@ -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;
}
|