summaryrefslogtreecommitdiff
path: root/ext/openssl/lib/openssl/bn.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-25 07:02:31 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-25 07:02:31 +0000
commit8b29525dadeaba1ba6dc2a9ea5e590aa9d1d825a (patch)
tree6d75e3f7e080937994b20f96bce660049ab8ca35 /ext/openssl/lib/openssl/bn.rb
parent4a50d447d9618b2e3df126e159aa1d735e429a70 (diff)
* 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/openssl/bn.rb')
-rw-r--r--ext/openssl/lib/openssl/bn.rb2
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