aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_bn.c
diff options
context:
space:
mode:
authornobu <nobu@ruby-lang.org>2017-09-07 03:24:08 +0000
committerKazuki Yamaguchi <k@rhe.jp>2017-09-08 22:35:50 +0900
commitd7984397f8fa6afc836175cc5ce1ca17ddeb630e (patch)
tree6e16c21e41180fbd7d4814a60eaa188d874a7c0f /ext/openssl/ossl_bn.c
parent8ed81ff4b0a893376f949c006942fea8f7fba8c3 (diff)
downloadruby-openssl-d7984397f8fa6afc836175cc5ce1ca17ddeb630e.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 [ky: add ST2FIX() definition to ext/openssl/ruby_missing.h, and adapt the test case to the 2.0 branch.] Sync-with-trunk: r59765
Diffstat (limited to 'ext/openssl/ossl_bn.c')
-rw-r--r--ext/openssl/ossl_bn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_bn.c b/ext/openssl/ossl_bn.c
index aa0f2c60..29dc1a21 100644
--- a/ext/openssl/ossl_bn.c
+++ b/ext/openssl/ossl_bn.c
@@ -953,7 +953,7 @@ ossl_bn_hash(VALUE self)
ossl_raise(eBNError, NULL);
}
- hash = INT2FIX(rb_memhash(buf, len));
+ hash = ST2FIX(rb_memhash(buf, len));
xfree(buf);
return hash;