summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-03 23:19:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-03 23:19:33 +0000
commit6c7306ccde05450aec58908078c4325f3cae5023 (patch)
treef938854907e62c2237e00af4124a98d1fb5b596b
parentbd442249cc787b1fd626c87702ef23993028e64b (diff)
downloadruby-6c7306ccde05450aec58908078c4325f3cae5023.tar.gz
ruby-6c7306ccde05450aec58908078c4325f3cae5023.tar.xz
ruby-6c7306ccde05450aec58908078c4325f3cae5023.zip
* cont.c (rb_fiber_start): fixed unconditional test.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--cont.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a46121e1..32f7f8308 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Nov 4 08:19:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c (rb_fiber_start): fixed unconditional test.
+
Wed Nov 4 02:08:14 2009 Aaron Patterson <tenderlove@ruby-lang.org>
* ext/dl/cptr.c (rb_dlptr_eql, rb_dlptr_cmp): DL::CPtr#== and DL::CPtr#<=>
diff --git a/cont.c b/cont.c
index b8b355364..a77f35e6d 100644
--- a/cont.c
+++ b/cont.c
@@ -858,7 +858,7 @@ rb_fiber_start(void)
TH_POP_TAG();
if (state) {
- if (TAG_RAISE) {
+ if (state == TAG_RAISE) {
th->thrown_errinfo = th->errinfo;
}
else {