[bugfix] call/cc will get caught in an infinite loop if the machine

stack grows upward
This commit is contained in:
Yuichi Nishiwaki
2015-06-24 16:02:46 +09:00
parent 0daa4febb0
commit f323e9d232
+1 -1
View File
@@ -178,7 +178,7 @@ restore_cont(pic_state *pic, struct pic_fullcont *cont)
if (&v > cont->stk_pos) native_stack_extend(pic, cont);
}
else {
if (&v > cont->stk_pos + cont->stk_len) native_stack_extend(pic, cont);
if (&v < cont->stk_pos + cont->stk_len) native_stack_extend(pic, cont);
}
pic->cc = cont->prev_jmp;