mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
array.c: typo fixed; sorry!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
12a498ff49
commit
5abd77d925
1 changed files with 4 additions and 4 deletions
8
array.c
8
array.c
|
@ -1454,20 +1454,20 @@ sort_reentered(VALUE *klass)
|
||||||
static int
|
static int
|
||||||
sort_1(const void *ap, const void *bp, void *dummy)
|
sort_1(const void *ap, const void *bp, void *dummy)
|
||||||
{
|
{
|
||||||
VALUE retval = check_reentered(dummy);
|
VALUE retval = sort_reentered(dummy);
|
||||||
VALUE a = *(const VALUE *)ap, b = *(const VALUE *)bp;
|
VALUE a = *(const VALUE *)ap, b = *(const VALUE *)bp;
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
retval = rb_yield_values(2, a, b);
|
retval = rb_yield_values(2, a, b);
|
||||||
n = rb_cmpint(retval, a, b);
|
n = rb_cmpint(retval, a, b);
|
||||||
check_reentered(dummy);
|
sort_reentered(dummy);
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
sort_2(const void *ap, const void *bp, void *dummy)
|
sort_2(const void *ap, const void *bp, void *dummy)
|
||||||
{
|
{
|
||||||
VALUE retval = check_reentered(dummy);
|
VALUE retval = sort_reentered(dummy);
|
||||||
VALUE a = *(const VALUE *)ap, b = *(const VALUE *)bp;
|
VALUE a = *(const VALUE *)ap, b = *(const VALUE *)bp;
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
|
@ -1482,7 +1482,7 @@ sort_2(const void *ap, const void *bp, void *dummy)
|
||||||
|
|
||||||
retval = rb_funcall(a, id_cmp, 1, b);
|
retval = rb_funcall(a, id_cmp, 1, b);
|
||||||
n = rb_cmpint(retval, a, b);
|
n = rb_cmpint(retval, a, b);
|
||||||
check_reentered(dummy);
|
sort_reentered(dummy);
|
||||||
|
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue