1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fixed compilationn error with VMDEBUG=3.

[fix GH-1690] Patch from @musaprg(Kotaro Inoue)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2017-09-06 03:53:25 +00:00
parent 7119de47c7
commit ee0b1b20a3

View file

@ -289,7 +289,7 @@ vm_stack_dump_each(rb_thread_t *th, rb_control_frame_t *cfp)
}
}
else if (VM_FRAME_FINISHED_P(cfp)) {
if ((th)->stack + (th)->stack_size > (VALUE *)(cfp + 1)) {
if ((th)->ec.vm_stack + (th)->ec.vm_stack_size > (VALUE *)(cfp + 1)) {
vm_stack_dump_each(th, cfp + 1);
}
else {