diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-01 12:21:50 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-01 12:21:50 -0500 |
commit | 88e7c92e76ce771e7a1efd4824060e3905194070 (patch) | |
tree | 04b36c981e662cb2c4a4db364dc36b3e8dd7164a /types.c | |
parent | da748748c0239c21b9d62c77b51e269ad1d7de9f (diff) |
casting to #C types
Diffstat (limited to 'types.c')
-rw-r--r-- | types.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2845,8 +2845,10 @@ static Status types_stmt(Typer *tr, Statement *s) { } } if (tr->block == NULL) { - if (!eval_stmt(tr->evalr, s)) - return false; + if (s->expr.kind != EXPR_C) { + if (!eval_stmt(tr->evalr, s)) + return false; + } } break; case STMT_DECL: |