summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-21 15:27:09 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-21 15:27:09 +0000
commitbb9a770cf34c9a6918fbc1ca6830c93ef3aa27a0 (patch)
treebd867c1f97db4bb0094b16a409140c0e4bf144c1 /complex.c
parent49e950c819b7b7415d59d2c568542e4cbf47f557 (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_4@62877 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 5aa76ad230..81fdb4fa4b 100644
--- a/complex.c
+++ b/complex.c
@@ -1233,7 +1233,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: */