Comparison

util/ip.lua @ 7486:c415a3fd4485

util.ip: rename variable (i is already defined) [luacheck]
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 09 Jul 2016 17:33:38 +0800
parent 7481:b3a864df32ef
child 8382:e5d00bf4a4d5
comparison
equal deleted inserted replaced
7485:5c4527f2d18d 7486:c415a3fd4485
56 end 56 end
57 else 57 else
58 for _ = 1, 4 - field:len() do 58 for _ = 1, 4 - field:len() do
59 result = result .. "0000"; 59 result = result .. "0000";
60 end 60 end
61 for i = 1, field:len() do 61 for j = 1, field:len() do
62 result = result .. hex2bits[field:sub(i,i)]; 62 result = result .. hex2bits[field:sub(j, j)];
63 end 63 end
64 end 64 end
65 end 65 end
66 return result; 66 return result;
67 end 67 end