aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/table.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-08 16:41:09 +0200
committerKim Alvefur <zash@zash.se>2016-08-08 16:41:09 +0200
commit69f217b1ca6186253459f8c3d0772b814e7aa0dc (patch)
tree28ff249f142d219a8fe1f7ede89996f393084875 /util-src/table.c
parentac565db2d8dc8239ab1c6bf4d3fadc2ca8c78d5f (diff)
parent8499f4e7214e86623d614368268913418289254c (diff)
downloadprosody-69f217b1ca6186253459f8c3d0772b814e7aa0dc.tar.gz
prosody-69f217b1ca6186253459f8c3d0772b814e7aa0dc.zip
Merge 0.10->trunk
Diffstat (limited to 'util-src/table.c')
-rw-r--r--util-src/table.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-src/table.c b/util-src/table.c
index 423f8f29..63415541 100644
--- a/util-src/table.c
+++ b/util-src/table.c
@@ -7,10 +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(int arg = n_args; arg >= 1; arg--) {
+ for(arg = n_args; arg >= 1; arg--) {
lua_rawseti(L, 1, arg);
}
lua_pushinteger(L, n_args);