result of sizeof() is 'unsigned int' (for backward compatibility)
authoreck <none@none>
Mon, 23 Apr 1990 13:33:07 +0000 (13:33 +0000)
committereck <none@none>
Mon, 23 Apr 1990 13:33:07 +0000 (13:33 +0000)
lang/cem/cemcom.ansi/ch3mon.c
lang/cem/cemcom.ansi/expression.g

index 08a2fc4..dc3463c 100644 (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;
index b731053..ec110eb 100644 (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;
                }
        |