From 04c8fb0362dc4f922c1e96ca01fb87a3e8e74214 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 5 Sep 2024 15:31:54 -0400 Subject: Replace $Type with Type$info for builtin TypeInfos --- builtins/array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtins/array.c') diff --git a/builtins/array.c b/builtins/array.c index 32aeab23..174bcbdd 100644 --- a/builtins/array.c +++ b/builtins/array.c @@ -282,7 +282,7 @@ public Table_t Array$counts(Array_t arr, const TypeInfo *type) { Table_t counts = {}; const TypeInfo count_type = {.size=sizeof(Table_t), .align=__alignof__(Table_t), - .tag=TableInfo, .TableInfo.key=type->ArrayInfo.item, .TableInfo.value=&$Int}; + .tag=TableInfo, .TableInfo.key=type->ArrayInfo.item, .TableInfo.value=&Int$info}; for (int64_t i = 0; i < arr.length; i++) { void *key = arr.data + i*arr.stride; int64_t *count = Table$get(counts, key, &count_type); -- cgit v1.2.3