summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-19 08:06:06 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-19 08:06:06 +0000
commit3b888aeded31454ca76509197aeb155ade114d8f (patch)
treebebd38764bd9c440e87e57c0c2e619cb3cea7a45 /class.c
parent23c98e52a4f3d119aa589a46e352d205f146916b (diff)
merge revision(s) 49503:
* class.c (rb_obj_singleton_methods): should use RTEST() to convert VALUE to int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@49649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/class.c b/class.c
index a33cb9aaae..48e24e79d6 100644
--- a/class.c
+++ b/class.c
@@ -1400,7 +1400,7 @@ rb_obj_singleton_methods(int argc, const VALUE *argv, VALUE obj)
klass = CLASS_OF(obj);
origin = RCLASS_ORIGIN(klass);
me_arg.list = st_init_numtable();
- me_arg.recur = recur;
+ me_arg.recur = RTEST(recur);
if (klass && FL_TEST(klass, FL_SINGLETON)) {
if ((mtbl = RCLASS_M_TBL(origin)) != 0)
st_foreach(mtbl, method_entry_i, (st_data_t)&me_arg);