diff options
author | Mike Mackintosh <m@zyp.io> | 2015-02-09 21:50:21 -0500 |
---|---|---|
committer | Mike Mackintosh <m@zyp.io> | 2015-02-09 22:18:11 -0500 |
commit | d6138e2e41b19e7b7f84db6c3031e8ec286e39ac (patch) | |
tree | 7e9ba6f0679effc4e2c01fe15f30d11c07fe3604 /lib | |
parent | fd2517acfc840436862004fbf2401adb5de8f3d2 (diff) | |
download | ipaddress-d6138e2e41b19e7b7f84db6c3031e8ec286e39ac.tar.gz |
updated remaining tests for minitest
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ipaddress.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ipaddress.rb b/lib/ipaddress.rb index 4033c3a..8b22431 100644 --- a/lib/ipaddress.rb +++ b/lib/ipaddress.rb @@ -67,7 +67,7 @@ module IPAddress # #-> "10.1.1.1" # def self.ntoa(uint) - unless(uint.is_a? Numeric and uint <= 0xffffffff) + unless(uint.is_a? Numeric and uint <= 0xffffffff and uint >= 0) raise(::ArgumentError, "not a long integer: #{uint.inspect}") end ret = [] |