fixed Fixnum#to_ber when the value is zero

master
blackhedd 2006-12-08 15:53:02 +00:00
parent 11d8152d1b
commit 65b446c586
1 changed files with 1 additions and 1 deletions

View File

@ -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