You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
irb(main):002:0> Net::NTP.get.mode NoMethodError: undefined method &' for "\x1C":String
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/net-ntp-2.1.1/lib/net/ntp/ntp.r
b:120:in mode' from (irb):2 from C:/Ruby193/bin/irb:12:in
'
irb(main):003:0>`
btw it's not only place where I get such error, basically everywhere where's used
fast fix I could think of would be @mode ||= (packet_data_by_field[:byte1][0].getbyte(0) & 0x07)
and btw it's not only place where I get such error, also for version_number and leap_indicator
The text was updated successfully, but these errors were encountered:
'irb(main):002:0> Net::NTP.get.mode NoMethodError: undefined method
&' for "\x1C":Stringfrom C:/Ruby193/lib/ruby/gems/1.9.1/gems/net-ntp-2.1.1/lib/net/ntp/ntp.r
b:120:in
mode' from (irb):2 from C:/Ruby193/bin/irb:12:in
irb(main):003:0>`
btw it's not only place where I get such error, basically everywhere where's used
fast fix I could think of would be
@mode ||= (packet_data_by_field[:byte1][0].getbyte(0) & 0x07)
and btw it's not only place where I get such error, also for version_number and leap_indicator
The text was updated successfully, but these errors were encountered: