diff --git a/ssc/compiler.cs b/ssc/compiler.cs index efe1a41..4828c47 100644 --- a/ssc/compiler.cs +++ b/ssc/compiler.cs @@ -30,8 +30,8 @@ namespace arookas { foreach (var function in context.SymbolTable.Functions) { function.Compile(context); } - foreach (var function in context.SymbolTable.Functions) { - function.CloseCallSites(context); + foreach (var callable in context.SymbolTable.Callables) { + callable.CloseCallSites(context); } results.DataCount = context.DataTable.Count; results.SymbolCount = context.SymbolTable.Count;