diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-03 15:06:59 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-03 15:06:59 -0400 |
| commit | 16c2e3f590d5136e90a4d195a877502faa544715 (patch) | |
| tree | cc07e362b4f64e85e510b1fd281d038371a6feba /compile.c | |
| parent | 52544344f10f0383d54795099c6b3a4f627c579a (diff) | |
Incrementally moving towards passing array entry sizes explicitly
Diffstat (limited to 'compile.c')
| -rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -175,7 +175,7 @@ static CORD compile_lvalue(env_t *env, ast_t *ast) CORD target_code = compile_to_pointer_depth(env, index->indexed, 1, false); type_t *item_type = Match(container_t, ArrayType)->item_type; return CORD_all("Array_lvalue(", compile_type(item_type), ", ", target_code, ", ", - compile(env, index->index), ", ", compile_type_info(env, container_t), + compile(env, index->index), ", ", CORD_asprintf("%ld", padded_type_size(item_type)), ", ", Text$quoted(ast->file->filename, false), ", ", heap_strf("%ld", ast->start - ast->file->text), ", ", heap_strf("%ld", ast->end - ast->file->text), ")"); } else if (container_t->tag == TableType) { |
