aboutsummaryrefslogtreecommitdiff
path: root/vm/runtime.c
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-31 21:24:26 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-31 21:24:50 +0000
commit7817b5acc9ff82038e10fb8dee987195bfa8e6e0 (patch)
treed1014e9695f98b30b78e31b5822f47613b2114a8 /vm/runtime.c
parent095e62b86fbd9568ddaae04aa8d15888b8487983 (diff)
downloadovm-7817b5acc9ff82038e10fb8dee987195bfa8e6e0.tar.gz
ovm-7817b5acc9ff82038e10fb8dee987195bfa8e6e0.tar.bz2
ovm-7817b5acc9ff82038e10fb8dee987195bfa8e6e0.zip
Use standardised signed version of word type from base.h
Diffstat (limited to 'vm/runtime.c')
-rw-r--r--vm/runtime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/runtime.c b/vm/runtime.c
index 82886b8..536ac6d 100644
--- a/vm/runtime.c
+++ b/vm/runtime.c
@@ -197,7 +197,7 @@ err_t vm_execute(vm_t *vm)
printf("0x%x", datum.as_byte);
break;
case TYPE_INT: {
- int32_t i = 0;
+ s_hword i = 0;
memcpy(&i, &datum.as_hword, HWORD_SIZE);
printf("%" PRId32, i);
break;
@@ -206,7 +206,7 @@ err_t vm_execute(vm_t *vm)
printf("%" PRIu32, datum.as_hword);
break;
case TYPE_LONG: {
- int64_t i = 0;
+ s_word i = 0;
memcpy(&i, &datum.as_word, WORD_SIZE);
printf("%" PRId64, i);
break;