diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-25 07:02:31 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-25 07:02:31 +0000 |
commit | 8b29525dadeaba1ba6dc2a9ea5e590aa9d1d825a (patch) | |
tree | 6d75e3f7e080937994b20f96bce660049ab8ca35 /ext/openssl/lib | |
parent | 4a50d447d9618b2e3df126e159aa1d735e429a70 (diff) | |
download | ruby-8b29525dadeaba1ba6dc2a9ea5e590aa9d1d825a.tar.gz |
* ext/openssl/ossl_bn.c (ossl_bn_initialize): allow Fixnum and Bignum.
[ruby-core:53986] [Feature #8217]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/lib')
-rw-r--r-- | ext/openssl/lib/openssl/bn.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/lib/openssl/bn.rb b/ext/openssl/lib/openssl/bn.rb index 180de18db1..db722438e4 100644 --- a/ext/openssl/lib/openssl/bn.rb +++ b/ext/openssl/lib/openssl/bn.rb @@ -29,7 +29,7 @@ end # OpenSSL # class Integer def to_bn - OpenSSL::BN::new(self.to_s(16), 16) + OpenSSL::BN::new(self) end end # Integer |