aboutsummaryrefslogtreecommitdiffstats
path: root/yarvcore.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-17 17:50:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-17 17:50:05 +0000
commit07cab8007ee3832adbb2fd7280ce26f3c50bf5cc (patch)
treeb2d478e57be25f173b3327aadb595bbd964b0ed7 /yarvcore.c
parent3c36d2d3c1c5458552df9a3a586d6d66c8479832 (diff)
downloadruby-07cab8007ee3832adbb2fd7280ce26f3c50bf5cc.tar.gz
* yarvcore.c (th_init2): push initial blockptr value for
rb_block_given_p() outside ruby_exec(). [ruby-core:10923] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'yarvcore.c')
-rw-r--r--yarvcore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/yarvcore.c b/yarvcore.c
index 75a37b6952..d8d332f9e7 100644
--- a/yarvcore.c
+++ b/yarvcore.c
@@ -318,9 +318,10 @@ th_init2(rb_thread_t *th)
th->cfp--;
th->cfp->pc = 0;
- th->cfp->sp = th->stack;
+ th->cfp->sp = th->stack + 1;
th->cfp->bp = 0;
th->cfp->lfp = th->stack;
+ *th->cfp->lfp = 0;
th->cfp->dfp = th->stack;
th->cfp->self = Qnil;
th->cfp->magic = 0;