Make sure case expression has the correct type

This commit is contained in:
Nick Gasson 2008-07-03 16:14:17 +01:00
parent dbbadbc309
commit 6868127ba3
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ static int draw_case(vhdl_procedural *proc, stmt_container *container,
vhdl_expr *when;
ivl_expr_t net = ivl_stmt_case_expr(stmt, i);
if (net) {
when = translate_expr(net);
when = translate_expr(net)->cast(test->get_type());
if (NULL == when)
return 1;
}