diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-10-05 18:39:28 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-10-05 18:39:28 +0100 |
commit | 73a4154d03944f43413c5e85d7e3adc5803ca10a (patch) | |
tree | d262ac205b10732bf8cc561298ebac5d5206a7a5 | |
parent | 04d29dacbcbbe9e44321cf88ea3098342cfbe293 (diff) | |
download | prosody-73a4154d03944f43413c5e85d7e3adc5803ca10a.tar.gz prosody-73a4154d03944f43413c5e85d7e3adc5803ca10a.zip |
util.array: Small logic fix for array:filter()
-rw-r--r-- | util/array.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/array.lua b/util/array.lua index bbf26f32..316a2861 100644 --- a/util/array.lua +++ b/util/array.lua @@ -43,7 +43,7 @@ function array_base.filter(outa, ina, func) end end - if inplace and write < start_length then + if inplace and write <= start_length then for i=write,start_length do outa[i] = nil; end |