diff --git a/lib/net/ber.rb b/lib/net/ber.rb index 27628f4..53d7920 100644 --- a/lib/net/ber.rb +++ b/lib/net/ber.rb @@ -366,7 +366,7 @@ class Fixnum # PLEASE optimize this code path. It's awfully ugly and probably slow. # It also doesn't understand negative numbers yet. - raise Net::BER::BerError.new( "range error in fixnum" ) unless self > 0 + raise Net::BER::BerError.new( "range error in fixnum" ) unless self >= 0 z = [self].pack("N") zlen = if self < 0x80 1