diff options
-rw-r--r-- | src/semantic-analysis.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/semantic-analysis.c b/src/semantic-analysis.c index 0a60668..14ad4b5 100644 --- a/src/semantic-analysis.c +++ b/src/semantic-analysis.c @@ -670,6 +670,7 @@ static bool decl_variable( init_id->line_number, var_str); continue; } + init_id->type_value = type_sym->type.type_base; switch (init_id->value_id.kind) { case CCMMC_KIND_ID_NORMAL: ccmmc_symbol_table_insert(table, |