From: fennecdjay Date: Sun, 14 Aug 2022 18:57:44 +0000 (+0200) Subject: :art: clean VM casts X-Git-Tag: nightly~264^2~41 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f006cf58db78fb37a281e5a4a91847f4390c1066;p=gwion.git :art: clean VM casts --- 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);