From 45751f4d182e07eae5ba683dcf1dcbd767de0b21 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 3 Aug 2006 06:21:03 +0000 Subject: * range.c (range_include): should always call Enumerable#include? (not #===) for non numeric end points. [ruby-core:08477] [ruby-core:08496] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- range.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'range.c') diff --git a/range.c b/range.c index 96eb2614e..a7f8e44b3 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); } -- cgit