From bde2a0b33833af613ab7d8949f25864ec268cb1e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 3 Mar 2024 13:44:22 -0500 Subject: Cleanup/fixes --- builtins/table.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'builtins') diff --git a/builtins/table.h b/builtins/table.h index 023df218..14a97977 100644 --- a/builtins/table.h +++ b/builtins/table.h @@ -13,8 +13,7 @@ .data=memcpy(GC_MALLOC(sizeof($ents)), $ents, sizeof($ents)), \ .length=sizeof($ents)/sizeof($ents[0]), \ .stride=(void*)&$ents[1] - (void*)&$ents[0], \ - }, &((TypeInfo){.size=sizeof(table_t), .align=__alignof__(table_t), .tag=TableInfo, \ - .TableInfo.key=key_info, .TableInfo.value=value_info})); \ + }, $TableInfo(key_info, value_info)); \ $table.fallback = fb; \ $table.default_value = def; \ $table; }) -- cgit v1.2.3