result of sizeof() is 'unsigned int' (for backward compatibility)
This commit is contained in:
parent
86188fb772
commit
81b7f67cb4
2 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
||||
|
|
Loading…
Reference in a new issue