diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-03 15:14:59 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-03 15:14:59 -0500 |
| commit | 2a7cfd7c3665c441c25094c12bde02ddc565061c (patch) | |
| tree | 38e670a74d5551c5345fa31e27c62f4f81188003 /compile.c | |
| parent | 00e7ce2bd089ed8180d8e819b8260a3ba9eb13f1 (diff) | |
Fix table literal issue for TCC compatibility
Diffstat (limited to 'compile.c')
| -rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -567,7 +567,7 @@ CORD compile(env_t *env, ast_t *ast) for (ast_list_t *entry = table->entries; entry; entry = entry->next) { auto e = Match(entry->ast, TableEntry); - code = CORD_all(code, ",\n\t{", compile(env, e->key), ", ", compile(env, e->value), "}"); + code = CORD_all(code, ",\n\t(struct $entry_s){", compile(env, e->key), ", ", compile(env, e->value), "}"); } return CORD_cat(code, ")"); |
