From 9d4e56c441e25cfa1148e6680182ddb255d2add5 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 9 Apr 2024 15:11:48 +0630 Subject: 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. --- vm/runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-13-gbd6f