Anonymous user
Module:IP: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
fix variable name in RawIP:getAdjacent
(fix IPAddress concatenation) |
(fix variable name in RawIP:getAdjacent) |
||
Line 143:
local result = Collection()
result.n = self.n
local carry =
for i = self.n, 1, -1 do
local sum = self[i] + carry
if sum >= 0x10000 then
carry =
sum = sum - 0x10000
else
carry =
end
result[i] = sum
|