projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce36584
)
fix TODO
author
Matthias Braun
<matze@braunis.de>
Wed, 5 Dec 2012 22:31:48 +0000
(23:31 +0100)
committer
Matthias Braun
<matze@braunis.de>
Mon, 10 Dec 2012 16:36:51 +0000
(17:36 +0100)
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
d3f650e
..
57f8322
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-6230,8
+6230,8
@@
static expression_t *parse_cast(void)
cast->base.type = type;
cast->unary.value = value;
- if (!
semantic_cast(cast)) {
- /* TODO: record the error in the AST. else it is impossible to detect it */
+ if (!semantic_cast(cast)) {
+ cast->base.type = type_error_type;
}
return cast;