From 56893e9dcd1eeebffb42b227a2151e18d49bc370 Mon Sep 17 00:00:00 2001 From: Gerardo Marset Date: Mon, 25 Feb 2013 20:28:28 -0200 Subject: Use the length operator (#) instead of table.getn. table.getn was deprecated in Lua 5.1 in favor of #, the length operator. See: http://www.lua.org/manual/5.1/manual.html#7.2 --- etc/dispatch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/dispatch.lua') diff --git a/etc/dispatch.lua b/etc/dispatch.lua index cc8cb23..31a1290 100644 --- a/etc/dispatch.lua +++ b/etc/dispatch.lua @@ -76,7 +76,7 @@ local function newset() insert = function(set, value) if not reverse[value] then table.insert(set, value) - reverse[value] = table.getn(set) + reverse[value] = #set end end, remove = function(set, value) -- cgit v1.2.3-55-g6feb