aboutsummaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-09 15:11:48 +0630
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-09 15:13:51 +0630
commit9d4e56c441e25cfa1148e6680182ddb255d2add5 (patch)
treeac9d1c57532fe952b83c90ef5ee7e2c96c00d268 /vm
parentafb48b65b9217fd0afd7d53cd89365d11a5a556b (diff)
downloadovm-9d4e56c441e25cfa1148e6680182ddb255d2add5.tar.gz
ovm-9d4e56c441e25cfa1148e6680182ddb255d2add5.tar.bz2
ovm-9d4e56c441e25cfa1148e6680182ddb255d2add5.zip
Fixed code in vm_pop_hword DWORD -> DHWORD
Though practically this would work, as the storage for the half word is not limited in any way, nevertheless it isn't syntactically right and it's better to fix now.
Diffstat (limited to 'vm')
-rw-r--r--vm/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/runtime.c b/vm/runtime.c
index 33ae383..a005f9e 100644
--- a/vm/runtime.c
+++ b/vm/runtime.c
@@ -906,7 +906,7 @@ err_t vm_pop_hword(vm_t *vm, data_t *ret)
vm_pop_byte(vm, &b);
bytes[i] = b.as_byte;
}
- *ret = DWORD(convert_bytes_to_hword(bytes));
+ *ret = DHWORD(convert_bytes_to_hword(bytes));
return ERR_OK;
}