diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-17 17:50:05 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-17 17:50:05 +0000 |
| commit | f802f9a15d73de8a83afe5f5b0312a366a3b0991 (patch) | |
| tree | b2d478e57be25f173b3327aadb595bbd964b0ed7 | |
| parent | 33e76c73c93ba56f2b2b6b2d757862a6617a8217 (diff) | |
| download | ruby-f802f9a15d73de8a83afe5f5b0312a366a3b0991.tar.gz ruby-f802f9a15d73de8a83afe5f5b0312a366a3b0991.tar.xz ruby-f802f9a15d73de8a83afe5f5b0312a366a3b0991.zip | |
* yarvcore.c (th_init2): push initial blockptr value for
rb_block_given_p() outside ruby_exec(). [ruby-core:10923]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | yarvcore.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Apr 18 02:50:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * yarvcore.c (th_init2): push initial blockptr value for + rb_block_given_p() outside ruby_exec(). [ruby-core:10923] + Wed Apr 18 02:30:24 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * configure.in (LDFLAGS): prepend -L. instead appending it to diff --git a/yarvcore.c b/yarvcore.c index 75a37b695..d8d332f9e 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; |
