aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/table.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-02 23:03:02 +0100
committerKim Alvefur <zash@zash.se>2017-03-02 23:03:02 +0100
commit8407f360939fe103a991641b0bf3b85e87d660b9 (patch)
tree4b71bdc7622635a101579c04b2d9e0c56991df2c /util-src/table.c
parenta11a584a59cde70ce4f0880049b9e675d8b2e223 (diff)
parentfdf81e53aa57c68f330deecf4f97cfefb05f5044 (diff)
downloadprosody-8407f360939fe103a991641b0bf3b85e87d660b9.tar.gz
prosody-8407f360939fe103a991641b0bf3b85e87d660b9.zip
Merge 0.10->trunk
Diffstat (limited to 'util-src/table.c')
-rw-r--r--util-src/table.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util-src/table.c b/util-src/table.c
index 0e547858..f1cd9e12 100644
--- a/util-src/table.c
+++ b/util-src/table.c
@@ -7,12 +7,11 @@ static int Lcreate_table(lua_State *L) {
}
static int Lpack(lua_State *L) {
- int arg;
unsigned int n_args = lua_gettop(L);
lua_createtable(L, n_args, 1);
lua_insert(L, 1);
- for(arg = n_args; arg >= 1; arg--) {
+ for(int arg = n_args; arg >= 1; arg--) {
lua_rawseti(L, 1, arg);
}