first finalized form of set

This commit is contained in:
Felix Müller 2024-06-08 23:26:40 +02:00
parent 8af6825567
commit c4e803fc23
1 changed files with 1 additions and 1 deletions

View File

@ -2116,7 +2116,7 @@ int createTypeDef(GHashTable *types, AST_NODE_PTR currentNode){
if(g_hash_table_contains(declaredComposites, (gpointer)def->name)){
return SEMANTIC_ERROR;
}
g_hash_table_insert(declaredComposites, (gpointer)def->name, def);
g_hash_table_insert(declaredComposites, (gpointer)def->name, def->type);
return SEMANTIC_OK;
}