summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-11 12:09:34 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-11 12:09:34 +0000
commitcb915c9456b4d4dee9604129556de38715eed1b7 (patch)
tree595e71b0e84398c38cdcd45bd3cf01170ce1e972 /enumerator.c
parent03e357444c85b059eebf187152a0645253e757bc (diff)
merge revision(s) 67466: [Backport #15755]
enumerator.c: force hash values fixable * enumerator.c (arith_seq_hash): force hash values fixable on LLP64 environment. [ruby-core:92190] [Bug #15755] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c
index 271c256b9c..6db3bbe50d 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -3132,7 +3132,7 @@ arith_seq_hash(VALUE self)
hash = rb_hash_uint(hash, NUM2LONG(v));
hash = rb_hash_end(hash);
- return LONG2FIX(hash);
+ return ST2FIX(hash);
}
#define NUM_GE(x, y) RTEST(rb_num_coerce_relop((x), (y), idGE))