From 587333d0b28fbf115783c3de34bc6bf271e06a9d Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Mon, 21 Jul 2014 18:46:54 +0000 Subject: replaced deprecated(Lua5.1) and missing(Lua5.2) table.getn() with the length operator # to obtain length of tables. svn path=/trunk/externals/loaders/pdlua/; revision=17330 --- examples/list-pak.pd_lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/list-pak.pd_lua') diff --git a/examples/list-pak.pd_lua b/examples/list-pak.pd_lua index 1651582..5964b33 100644 --- a/examples/list-pak.pd_lua +++ b/examples/list-pak.pd_lua @@ -48,7 +48,8 @@ function ListPak:in_n(i, sel, atoms) -- insert selector self.stored[i] = sel else - if table.getn(atoms) > 0 then +-- if table.getn(atoms) > 0 then + if #(atoms) > 0 then self.stored[i] = atoms[1] end end -- cgit v1.2.1