1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
matz 2006-08-03 06:21:03 +00:00
parent 800c7ad39b
commit 0d15c66aaf
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Thu Aug 3 15:16:44 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* range.c (range_include): should always call Enumerable#include?
(not #===) for non numeric end points. [ruby-core:08477]
[ruby-core:08496]
Mon Jul 31 16:51:40 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (exit_handler): new function; release winsock and

View file

@ -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);
}