From 8283410210bc54cafc7b022fab03b886ac567dba Mon Sep 17 00:00:00 2001 From: rxi Date: Mon, 3 Mar 2014 21:01:39 +0000 Subject: [PATCH] Substituted use of var name "arg" in lume.fn() The use of a variable called "arg" was causing a bug in lume.fn() for lua5.1 which creates a table named "arg" when a variable number of arguments are used. The variable name has been changed to "args" to avoid the conflict. --- lume.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lume.lua b/lume.lua index ce6aca5..d90300f 100644 --- a/lume.lua +++ b/lume.lua @@ -174,9 +174,9 @@ end function lume.fn(fn, ...) - local arg = {...} + local args = {...} return function(...) - local a = lume.merge(lume.clone(arg), {...}) + local a = lume.merge(lume.clone(args), {...}) return fn(unpack(a)) end end