Fix last commit.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 27 Aug 2008 14:15:42 +0000 (14:15 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 27 Aug 2008 14:15:42 +0000 (14:15 +0000)
[r21514]

parser.c

index ec5ca96..657370a 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -6973,7 +6973,7 @@ static void semantic_incdec(unary_expression_t *expression)
 {
        type_t *const orig_type = expression->value->base.type;
        type_t *const type      = skip_typeref(orig_type);
-       type_t *      res_type  = type;
+       type_t *      res_type  = orig_type;
        if (is_type_pointer(type)) {
                if (!check_pointer_arithmetic(&expression->base.source_position,
                                              type, orig_type)) {