summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-02-05 03:18:28 -0500
committerKyle Gunger <kgunger12@gmail.com>2024-02-05 03:18:28 -0500
commitc6be3482d5a480f2fe52876435ac096518de627c (patch)
tree2f2c56a13490bcbaeff48bc12a85849883de9fa1
parent7c64064fcc7e1801667df7c04c31eb6e9a92f9da (diff)
fix sizing bug
-rw-r--r--compiler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler.c b/compiler.c
index 52a2929..15f60e8 100644
--- a/compiler.c
+++ b/compiler.c
@@ -962,7 +962,7 @@ void _var_op_set_ptr(CompData *out, Variable *store, Variable *from) {
}
}
- switch (_var_pure_size(from)) {
+ switch (_var_size(from)) {
case 1:
vect_push_string(&out->text, "\tmovzx rsi, byte [rsi]\n");
break;