projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
047521e
)
fix missing skip_typerefs
author
Matthias Braun
<matze@braunis.de>
Thu, 7 Aug 2008 11:00:03 +0000
(11:00 +0000)
committer
Matthias Braun
<matze@braunis.de>
Thu, 7 Aug 2008 11:00:03 +0000
(11:00 +0000)
[r21030]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
297dbd6
..
0f379ed
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-6214,8
+6214,8
@@
static expression_t *parse_conditional_expression(unsigned precedence,
/* TODO Treat (void*)0 as null pointer constant */
if (is_type_pointer(other_type)) {
- type_t *to1 =
pointer_type->pointer.points_to
;
- type_t *to2 =
other_type->pointer.points_to
;
+ type_t *to1 =
skip_typeref(pointer_type->pointer.points_to)
;
+ type_t *to2 =
skip_typeref(other_type->pointer.points_to)
;
type_t *to;
if (is_type_atomic(to1, ATOMIC_TYPE_VOID) ||