- fixed gcc compilation
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sat, 15 Dec 2007 19:02:39 +0000 (19:02 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sat, 15 Dec 2007 19:02:39 +0000 (19:02 +0000)
- fixed -Wsign-compare

[r18773]

ast.h
parser.c

diff --git a/ast.h b/ast.h
index 9213d2c..f5eacfe 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -4,7 +4,7 @@
 #include <stdio.h>
 #include <stdbool.h>
 
-typedef struct scope_t                    scope_t;
+typedef struct scope_t                          scope_t;
 
 typedef struct expression_base_t                expression_base_t;
 typedef struct const_expression_t               const_expression_t;
@@ -19,8 +19,7 @@ typedef struct binary_expression_t              binary_expression_t;
 typedef struct unary_expression_t               unary_expression_t;
 typedef struct select_expression_t              select_expression_t;
 typedef struct array_access_expression_t        array_access_expression_t;
-typedef struct typeprop_expression_t              typeprop_expression_t;
-typedef struct typeprop_expression_t             typeprop_expression_t;
+typedef struct typeprop_expression_t            typeprop_expression_t;
 typedef struct conditional_expression_t         conditional_expression_t;
 typedef struct expression_list_element_t        expression_list_element_t;
 typedef struct comma_expression_t               comma_expression_t;
index 28db0fe..784d677 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -5473,7 +5473,7 @@ declaration_t *expr_is_variable(const expression_t *expression)
                return NULL;
        }
        declaration_t *declaration = expression->reference.declaration;
-       if (is_local_var_declaration(declaration))
+       if (is_var_declaration(declaration))
                return declaration;
        return NULL;
 }