Skip to content

Commit 313a909

Browse files
committed
merge revision(s) 17636:
* eval.c (rb_obj_respond_to): use RTEST to test the result of respond_to? method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@17717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 09cb662 commit 313a909

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Sun Jun 29 21:39:54 2008 Tanaka Akira <akr@fsij.org>
2+
3+
* eval.c (rb_obj_respond_to): use RTEST to test the result of
4+
respond_to? method.
5+
16
Sun Jun 29 21:20:17 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
27

38
* array.c (rb_ary_fill): (compatibility) do not raise

eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4233,7 +4233,7 @@ rb_obj_respond_to(obj, id, priv)
42334233
int n = 0;
42344234
args[n++] = ID2SYM(id);
42354235
if (priv) args[n++] = Qtrue;
4236-
return rb_funcall2(obj, respond_to, n, args);
4236+
return RTEST(rb_funcall2(obj, respond_to, n, args));
42374237
}
42384238
}
42394239

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define RUBY_RELEASE_DATE "2008-06-29"
33
#define RUBY_VERSION_CODE 187
44
#define RUBY_RELEASE_CODE 20080629
5-
#define RUBY_PATCHLEVEL 37
5+
#define RUBY_PATCHLEVEL 38
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8

0 commit comments

Comments
 (0)