From f006cf58db78fb37a281e5a4a91847f4390c1066 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 14 Aug 2022 20:57:44 +0200 Subject: [PATCH] :art: clean VM casts --- src/vm/vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vm/vm.c b/src/vm/vm.c index d568972b..0fcd17c8 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -83,9 +83,9 @@ ANN static inline bool find_handle(const VM_Shred shred, const Symbol effect) { (m_bit *)VPTR(&shred->info->frame, VLEN(&shred->info->frame) - 1); shredule(shred->tick->shreduler, shred, 0); shred->pc = pc; // VKEY(m, i); - const Instr instr = vector_at(&shred->code->instr, pc); + const Instr instr = (Instr)vector_at(&shred->code->instr, pc); if(!instr->m_val) - *(m_uint*)(shred->mem + instr->m_val2) = s_name(effect); + *(m_str*)(shred->mem + instr->m_val2) = s_name(effect); vector_pop(&shred->info->frame); vector_pop(&shred->info->frame); -- 2.43.0