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

* 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:
matz 2008-05-08 01:44:50 +00:00
parent f8cb9c861a
commit 12a498ff49
2 changed files with 7 additions and 2 deletions

View file

@ -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>
* array.c (sort_1, sort_2): check for reentered and if elements are

View file

@ -1443,10 +1443,10 @@ rb_ary_reverse_m(VALUE ary)
}
static VALUE
check_reentered(VALUE *klass)
sort_reentered(VALUE *klass)
{
if (*klass) {
rb_raise(rb_eRuntimeError, "sort! reentered");
rb_raise(rb_eRuntimeError, "sort reentered");
}
return Qnil;
}