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 11d8152 commit 65b446cCopy full SHA for 65b446c
lib/net/ber.rb
@@ -366,7 +366,7 @@ def to_ber
366
367
# PLEASE optimize this code path. It's awfully ugly and probably slow.
368
# It also doesn't understand negative numbers yet.
369
- raise Net::BER::BerError.new( "range error in fixnum" ) unless self > 0
+ raise Net::BER::BerError.new( "range error in fixnum" ) unless self >= 0
370
z = [self].pack("N")
371
zlen = if self < 0x80
372
1
0 commit comments