aboutsummaryrefslogtreecommitdiffstats
path: root/rational.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-30 05:48:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-30 05:48:28 +0000
commita4a9a96f1339d97446c0b93419c393217ca8812f (patch)
tree4a0ad8aad62209a1a00a039f07ef1afff3859ef9 /rational.c
parentb6b5e13ee91573b2d02d1cf6bdc721b56118b398 (diff)
downloadruby-a4a9a96f1339d97446c0b93419c393217ca8812f.tar.gz
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.c2
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