summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-22 21:41:46 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-22 21:41:46 +0000
commit4724dea49eca8b13dd5cad46066b189fa3a5a06d (patch)
treebe67045ad7a790b8e7a48349d7986f9f76cace84 /complex.c
parentc442dd605b7648bfac4b3c5be4159ad66323b231 (diff)
merge revision(s) 62107: [Backport #14420]
force fixable * complex.c (nucomp_hash): force hash values fixable. [ruby-core:85224] [Bug #14420] * rational.c (nurat_hash): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@62538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/complex.c b/complex.c
index cee9770f67..e06faa813b 100644
--- a/complex.c
+++ b/complex.c
@@ -1250,7 +1250,7 @@ nucomp_hash(VALUE self)
n = rb_hash(dat->imag);
h[1] = NUM2LONG(n);
v = rb_memhash(h, sizeof(h));
- return LONG2FIX(v);
+ return ST2FIX(v);
}
/* :nodoc: */