From daa65bdecf308f46a934d15d291fca309449eb86 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Mon, 14 Oct 2013 17:05:49 +0900 Subject: [PATCH] pop value from the stack at the end of VM execution --- src/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm.c b/src/vm.c index df79f550..851f02f1 100644 --- a/src/vm.c +++ b/src/vm.c @@ -213,7 +213,7 @@ pic_run(pic_state *pic, struct pic_proc *proc, pic_value args) } VM_LOOP_END; STOP: - return *sp; + return POP(); } void