* array.c (sort_reentered): reentered check may be called from
Array#sort. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f8cb9c861a
commit
12a498ff49
@ -1,3 +1,8 @@
|
|||||||
|
Thu May 8 10:44:04 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* array.c (sort_reentered): reentered check may be called from
|
||||||
|
Array#sort.
|
||||||
|
|
||||||
Thu May 8 09:51:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu May 8 09:51:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* array.c (sort_1, sort_2): check for reentered and if elements are
|
* array.c (sort_1, sort_2): check for reentered and if elements are
|
||||||
|
4
array.c
4
array.c
@ -1443,10 +1443,10 @@ rb_ary_reverse_m(VALUE ary)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
check_reentered(VALUE *klass)
|
sort_reentered(VALUE *klass)
|
||||||
{
|
{
|
||||||
if (*klass) {
|
if (*klass) {
|
||||||
rb_raise(rb_eRuntimeError, "sort! reentered");
|
rb_raise(rb_eRuntimeError, "sort reentered");
|
||||||
}
|
}
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user