projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4a6427
)
fix crash
author
Matthias Braun
<matze@braunis.de>
Fri, 30 May 2008 16:26:34 +0000
(16:26 +0000)
committer
Matthias Braun
<matze@braunis.de>
Fri, 30 May 2008 16:26:34 +0000
(16:26 +0000)
[r19857]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
a8124d8
..
338c975
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-6344,9
+6344,9
@@
static void semantic_comparison(binary_expression_t *expression)
other_expr = left;
}
- type_t *other_type = skip_typeref(other_expr->base.type);
if(const_expr != NULL) {
- long val = fold_constant(const_expr);
+ type_t *other_type = skip_typeref(other_expr->base.type);
+ long val = fold_constant(const_expr);
/* TODO: check if val can be represented by other_type */
(void) other_type;
(void) val;