Actions
Bug #1184
closedType error in Integer#to_bn (via Openssl)
Description
=begin
The openssl library adds the to_bn method to the Integer class for creating an instance of the OpenSSL::BN class. The code, located in openssl/bn.rb, is:
def to_bn
OpenSSL::BN::new(self)
end
However, the constructor for the BN class takes a String, not an Integer.
The following repoduces the error:
require 'openssl'
3.to_bn
=> TypeError: can't convert Fixnum into String
=end
Actions
Like0
Like0Like0Like0