Skip to content
Snippets Groups Projects
Commit 32c3acb3 authored by Michael Rodrigues's avatar Michael Rodrigues Committed by Romain Tartière
Browse files

fixed another indentation mismatch

parent 1a9873b4
No related branches found
No related tags found
No related merge requests found
...@@ -68,14 +68,14 @@ module IPAddress ...@@ -68,14 +68,14 @@ module IPAddress
# #
def self.ntoa(uint) def self.ntoa(uint)
unless(uint.is_a? Numeric and uint <= 0xffffffff and uint >= 0) unless(uint.is_a? Numeric and uint <= 0xffffffff and uint >= 0)
raise(::ArgumentError, "not a long integer: #{uint.inspect}") raise(::ArgumentError, "not a long integer: #{uint.inspect}")
end end
ret = [] ret = []
4.times do 4.times do
ret.unshift(uint & 0xff) ret.unshift(uint & 0xff)
uint >>= 8 uint >>= 8
end end
ret.join('.') ret.join('.')
end end
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment