From c4e803fc23cceb2b33d01eece75cf0692c193f64 Mon Sep 17 00:00:00 2001 From: Filleo Date: Sat, 8 Jun 2024 23:26:40 +0200 Subject: [PATCH] first finalized form of set --- src/set/set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/set/set.c b/src/set/set.c index aaea640..67261fa 100644 --- a/src/set/set.c +++ b/src/set/set.c @@ -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; }