diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-30 05:48:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-30 05:48:28 +0000 |
commit | 3f7221ad3dbe89832e330079df4b80e633b016ef (patch) | |
tree | 4a0ad8aad62209a1a00a039f07ef1afff3859ef9 /rational.c | |
parent | 5af43b1ec2674e9f86090790bc61abdb96be14ff (diff) |
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/trunk@62107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r-- | rational.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rational.c b/rational.c index 7491b81cf8..e38695ec43 100644 --- a/rational.c +++ b/rational.c @@ -1783,7 +1783,7 @@ nurat_hash(VALUE self) n = rb_hash(dat->den); h[1] = NUM2LONG(n); v = rb_memhash(h, sizeof(h)); - return LONG2FIX(v); + return ST2FIX(v); } static VALUE |