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; }