fix TODO
authorMatthias Braun <matze@braunis.de>
Wed, 5 Dec 2012 22:31:48 +0000 (23:31 +0100)
committerMatthias Braun <matze@braunis.de>
Mon, 10 Dec 2012 16:36:51 +0000 (17:36 +0100)
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;