OSDN Git Service

(build_unary_op, case *INCREMENT_EXPR): Add size in bytes, not value
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Jul 1994 22:33:29 +0000 (22:33 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Jul 1994 22:33:29 +0000 (22:33 +0000)
of sizeof.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7822 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-typeck.c

index e99d193..f5ff3a5 100644 (file)
@@ -2798,7 +2798,7 @@ build_unary_op (code, xarg, noconvert)
                       ((code == PREINCREMENT_EXPR
                         || code == POSTINCREMENT_EXPR)
                        ? "increment" : "decrement"));
-           inc = c_sizeof_nowarn (TREE_TYPE (result_type));
+           inc = c_size_in_bytes (TREE_TYPE (result_type));
          }
        else
          inc = integer_one_node;