aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-21 16:59:55 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-21 16:59:55 +0900
commit5b287481befe03cc3e3dbc4b5571e21dbc523bae (patch)
tree853e859aa58ac31d7df6df3a55c9aaf5d2fdf9e7 /array.c
parent6f0446785b537994bceb9fc8574cdaa9b59cbef6 (diff)
downloadruby-5b287481befe03cc3e3dbc4b5571e21dbc523bae.tar.gz
Removed non-RUBY_INTEGER_UNIFICATION code
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index 0686eeca81..69f3f57d14 100644
--- a/array.c
+++ b/array.c
@@ -2760,7 +2760,7 @@ sort_2(const void *ap, const void *bp, void *dummy)
VALUE a = *(const VALUE *)ap, b = *(const VALUE *)bp;
int n;
- if (FIXNUM_P(a) && FIXNUM_P(b) && CMP_OPTIMIZABLE(data->cmp_opt, Fixnum)) {
+ if (FIXNUM_P(a) && FIXNUM_P(b) && CMP_OPTIMIZABLE(data->cmp_opt, Integer)) {
if ((long)a > (long)b) return 1;
if ((long)a < (long)b) return -1;
return 0;