diff options
| author | gingerBill <bill@gingerbill.org> | 2023-05-18 11:35:47 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-05-18 11:35:47 +0100 |
| commit | f2e590be7a02710aaf2a6cd236ceeb829db14e30 (patch) | |
| tree | 2d1773a6433901aecd30cf348237dba419f55f20 /src | |
| parent | 49cd9648b05c6eda252122104cb9b1faa2502602 (diff) | |
Fix #2544
Diffstat (limited to 'src')
| -rw-r--r-- | src/llvm_backend_expr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp index 108276ee3..67c201677 100644 --- a/src/llvm_backend_expr.cpp +++ b/src/llvm_backend_expr.cpp @@ -3783,6 +3783,7 @@ gb_internal lbAddr lb_build_addr_index_expr(lbProcedure *p, Ast *expr) { multi_ptr = lb_emit_load(p, multi_ptr); } lbValue index = lb_build_expr(p, ie->index); + index = lb_emit_conv(p, index, t_int); lbValue v = {}; LLVMValueRef indices[1] = {index.value}; |