projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dfaa14
)
Skip typerefs when comparing the pointed-to types of pointers.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 26 Nov 2007 17:47:19 +0000
(17:47 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 26 Nov 2007 17:47:19 +0000
(17:47 +0000)
[r18539]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
d1f4930
..
64b0288
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-777,6
+777,9
@@
static void semantic_assign(type_t *orig_type_left, expression_t **right,
type_t *points_to_left = pointer_type_left->points_to;
type_t *points_to_right = pointer_type_right->points_to;
+ points_to_left = skip_typeref(points_to_left);
+ points_to_right = skip_typeref(points_to_right);
+
if(!is_atomic_type(points_to_left, ATOMIC_TYPE_VOID)
&& !is_atomic_type(points_to_right, ATOMIC_TYPE_VOID)
&& !types_compatible(points_to_left, points_to_right)) {