diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-03 06:21:03 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-03 06:21:03 +0000 |
| commit | 45751f4d182e07eae5ba683dcf1dcbd767de0b21 (patch) | |
| tree | 201a529a4f8c1d2a0abceeb2e2a798cce797f6bf | |
| parent | 9f1727ba501d0f50eed77b2b6695ab10cdf3fae0 (diff) | |
| download | ruby-45751f4d182e07eae5ba683dcf1dcbd767de0b21.tar.gz ruby-45751f4d182e07eae5ba683dcf1dcbd767de0b21.tar.xz ruby-45751f4d182e07eae5ba683dcf1dcbd767de0b21.zip | |
* 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
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | range.c | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -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 @@ -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); } |
