diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-03 13:44:22 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-03 13:44:22 -0500 |
| commit | bde2a0b33833af613ab7d8949f25864ec268cb1e (patch) | |
| tree | 09ac3006cecbabb3fb6707c00d3c0f834203ad73 /builtins/table.h | |
| parent | 0256972ca6452cf06f8f81c7ddb7bf8e7d9b538a (diff) | |
Cleanup/fixes
Diffstat (limited to 'builtins/table.h')
| -rw-r--r-- | builtins/table.h | 3 |
1 files changed, 1 insertions, 2 deletions
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; }) |
