From 53eaeb68d99af659b48f45a0b4b7226e3427786a Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 8 May 2008 22:48:38 +0000 Subject: * cont.c (cont_restore_0): dynamic stack direction code should be consistent with static one. [ruby-talk:301152] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ cont.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8cebaf799..643291e67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri May 9 07:47:07 2008 Yukihiro Matsumoto + + * cont.c (cont_restore_0): dynamic stack direction code should be + consistent with static one. [ruby-talk:301152] + Fri May 9 00:03:50 2008 Yukihiro Matsumoto * parse.y (arg): operator assignment "a += b rescue c" should be diff --git a/cont.c b/cont.c index 02264f839..57b95feb9 100644 --- a/cont.c +++ b/cont.c @@ -323,7 +323,7 @@ cont_restore_0(rb_context_t *cont, VALUE *addr_in_prev_frame) #else if (addr_in_prev_frame > &space[0]) { /* Stack grows downward */ - if (addr_in_prev_frame > cont->saved_thread.machine_stack_size) { + if (addr_in_prev_frame > cont->machine_stack_src) { cont_restore_0(cont, &space[0]); } } -- cgit