mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 01:23:57 +02:00
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
This commit is contained in:
parent
49e950c819
commit
bb9a770cf3
5 changed files with 12 additions and 6 deletions
|
@ -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: */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue