aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-05 18:39:28 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-05 18:39:28 +0100
commit73a4154d03944f43413c5e85d7e3adc5803ca10a (patch)
treed262ac205b10732bf8cc561298ebac5d5206a7a5 /util
parent04d29dacbcbbe9e44321cf88ea3098342cfbe293 (diff)
downloadprosody-73a4154d03944f43413c5e85d7e3adc5803ca10a.tar.gz
prosody-73a4154d03944f43413c5e85d7e3adc5803ca10a.zip
util.array: Small logic fix for array:filter()
Diffstat (limited to 'util')
-rw-r--r--util/array.lua2
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