summaryrefslogtreecommitdiff
path: root/node.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-19 19:01:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-19 19:01:44 +0000
commit0e3ef036e211c0047f5d9108261c0b4f41a94b3e (patch)
tree64fc4ca2856ecbf2cfafcf6ba7c2f7707c46f62f /node.h
parent32dd2c47a56e9d310be8258ce5ede8470fc5ce93 (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@21677 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 604bc837d0..3161af1190 100644
--- a/node.h
+++ b/node.h
@@ -481,7 +481,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" { */