summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-03 06:21:03 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-03 06:21:03 +0000
commit0d15c66aafdbc537a1331c2b93d26cb7348a34cf (patch)
tree201a529a4f8c1d2a0abceeb2e2a798cce797f6bf /range.c
parent800c7ad39bbb1871b510b1393045601c1d2b8c4b (diff)
* range.c (range_include): should always call Enumerable#include?
(not #===) for non numeric end points. [ruby-core:08477] [ruby-core:08496] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/range.c b/range.c
index 96eb2614e8..a7f8e44b37 100644
--- a/range.c
+++ b/range.c
@@ -11,6 +11,7 @@
**********************************************************************/
#include "ruby.h"
+#include "env.h"
VALUE rb_cRange;
static ID id_cmp, id_succ, id_beg, id_end, id_excl;
@@ -637,6 +638,7 @@ range_include(VALUE range, VALUE val)
}
return Qfalse;
}
+ ruby_frame->this_func = rb_intern("include?");
return rb_call_super(1, &val);
}