Changeset

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
parents 7485:5c4527f2d18d
children 7487:88a0a947e58c
files util/ip.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/util/ip.lua	Sat Jul 09 17:30:56 2016 +0800
+++ b/util/ip.lua	Sat Jul 09 17:33:38 2016 +0800
@@ -58,8 +58,8 @@
 			for _ = 1, 4 - field:len() do
 				result = result .. "0000";
 			end
-			for i = 1, field:len() do
-				result = result .. hex2bits[field:sub(i,i)];
+			for j = 1, field:len() do
+				result = result .. hex2bits[field:sub(j, j)];
 			end
 		end
 	end