summaryrefslogtreecommitdiffstats
path: root/node.h
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-25 06:15:25 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-25 06:15:25 +0000
commit7783dfe163c0b15054bd6cde0be4eb91ce593278 (patch)
treeee9e5cdb92dd5f364648e4c936e4ca5652ecaaf3 /node.h
parent589bd8ee4cf38fcbddf9ac9cacb6a574a8d27948 (diff)
downloadruby-7783dfe163c0b15054bd6cde0be4eb91ce593278.tar.gz
ruby-7783dfe163c0b15054bd6cde0be4eb91ce593278.tar.xz
ruby-7783dfe163c0b15054bd6cde0be4eb91ce593278.zip
merge revision(s) 21677:
* node.h (rb_thread_raised_clear): should not clear flags other than raised flags. a patch by Tomoyuki Chikanaga <chikanag AT nippon-control-system.co.jp> at [ruby-dev:37794]. [ruby-dev:37776] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@22622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.h')
-rw-r--r--node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.h b/node.h
index d49567a1b..476a82688 100644
--- a/node.h
+++ b/node.h
@@ -479,7 +479,7 @@ int rb_thread_reset_raised(rb_thread_t th);
#define rb_thread_raised_set(th, f) ((th)->flags |= (f))
#define rb_thread_raised_reset(th, f) ((th)->flags &= ~(f))
#define rb_thread_raised_p(th, f) (((th)->flags & (f)) != 0)
-#define rb_thread_raised_clear(th) ((th)->flags = 0)
+#define rb_thread_raised_clear(th) (rb_thread_raised_reset(th, RAISED_MASK))
#if defined(__cplusplus)
} /* extern "C" { */