summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-17 04:50:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-17 04:50:52 +0000
commita289f7a4b143fd227b503f85af939ecd47491167 (patch)
tree0c1bd0da85b574719ca022b364abc999b621b2b1 /thread.c
parentc922e508049ebd8a36be0b86d512375c26b19ee7 (diff)
* thread.c (rb_thread_s_debug_set): set level, not only boolean.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index cab4822e28..984227ea81 100644
--- a/thread.c
+++ b/thread.c
@@ -152,7 +152,7 @@ rb_thread_s_debug(void)
static VALUE
rb_thread_s_debug_set(VALUE self, VALUE val)
{
- rb_thread_debug_enabled = RTEST(val);
+ rb_thread_debug_enabled = RTEST(val) ? NUM2INT(val) : 0;
return val;
}
# else