aboutsummaryrefslogtreecommitdiff
path: root/examples/list-pak.pd_lua
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2014-07-21 18:46:54 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 14:28:31 +0200
commit587333d0b28fbf115783c3de34bc6bf271e06a9d (patch)
treec7b09d31dd16cad3f7e07581ed58118b1de8f7c2 /examples/list-pak.pd_lua
parent349e81ecd8ec307c187c0ff4abf0788f381a3087 (diff)
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
Diffstat (limited to 'examples/list-pak.pd_lua')
-rw-r--r--examples/list-pak.pd_lua3
1 files changed, 2 insertions, 1 deletions
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