forked from xxq250/Nasal-Interpreter
fix bug in codegen: foreach/forindex(id;vec/hash) may cause segmentation fault because of incorrect generated operand
This commit is contained in:
@@ -512,6 +512,8 @@ inline void nasal_vm::opr_meq()
|
||||
{
|
||||
mem_addr[0]=(--gc.top)[0]; // pop old mem_addr[0] and replace it
|
||||
mem_addr=nullptr;
|
||||
if(imm[pc])
|
||||
--gc.top;
|
||||
}
|
||||
inline void nasal_vm::opr_eq()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user