We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8007fc1 commit 510350eCopy full SHA for 510350e
src/main/java/org/jruby/ext/openssl/ASN1.java
@@ -967,7 +967,7 @@ static IRubyObject decodeObject(final ThreadContext context,
967
final ASN1BitString derObj = (ASN1BitString) obj;
968
RubyString str = runtime.newString( new ByteList(derObj.getBytes(), false) );
969
IRubyObject bitString = ASN1.getClass("BitString").newInstance(context, str, Block.NULL_BLOCK);
970
- bitString.callMethod(context, "unused_bits=", runtime.newFixnum( derObj.getPadBits() ));
+ bitString.getInstanceVariables().setInstanceVariable("@unused_bits", runtime.newFixnum(derObj.getPadBits()));
971
return bitString;
972
}
973
if ( obj instanceof ASN1String ) {
0 commit comments