diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-03-26 16:32:04 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-03-26 16:32:04 -0400 |
commit | 0e9ecb75d6893425b845dab932218d56c814ab4a (patch) | |
tree | 7c5389c35a8b88f98161c1fb9a89d359d662376c /compiler.c | |
parent | 05ca4b95b8173c7787bfd7407ac67d8079a1f9de (diff) |
dumb memory bug
Diffstat (limited to 'compiler.c')
-rw-r--r-- | compiler.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1155,7 +1155,7 @@ void _var_op_set_ptr(CompData *out, Variable *store, Variable *from) { int *cur; for (size_t i = from->ptr_chain.count - 1; i > 0; i--) { - cur = vect_get(&store->ptr_chain, i - 1); + cur = vect_get(&from->ptr_chain, i - 1); if (*cur == PTYPE_REF) { vect_push_string(&out->text, "\tmov rsi, [rsi]\n"); } else { |