diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-07 03:24:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-07 03:24:08 +0000 |
commit | b019719301b068bfc5fdfdbcba4559f0fc6b966c (patch) | |
tree | 8183de0474cdb8ccc1aa3854c3a400490cf03dc0 /ext/bigdecimal | |
parent | 320a9e4ce68564fbfe0bc0c385ce76f03921a64a (diff) | |
download | ruby-b019719301b068bfc5fdfdbcba4559f0fc6b966c.tar.gz |
ruby.h: unnormalized Fixnum value
* include/ruby/ruby.h (ST2FIX): fix unnormalized Fixnum value bug
on mingw/mswin. [ruby-core:82687] [Bug #13877]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r-- | ext/bigdecimal/bigdecimal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 301cd71bc0..d6bc8bdaa7 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -384,7 +384,7 @@ BigDecimal_hash(VALUE self) hash ^= rb_memhash(p->frac, sizeof(BDIGIT)*p->Prec); hash += p->exponent; } - return INT2FIX(hash); + return ST2FIX(hash); } /* |