From: Thierry FOURNIER Date: Mon, 6 Jul 2015 22:41:29 +0000 (+0200) Subject: BUG/MINOR: lua: type error in the arguments wrapper X-Git-Tag: v1.6-dev3~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=29176f3ebb83effa48946801c89781199d312829;p=thirdparty%2Fhaproxy.git BUG/MINOR: lua: type error in the arguments wrapper The expected arguments time and size are returned as int. This patch fix this bug and returns the expected type. --- diff --git a/src/hlua.c b/src/hlua.c index 026dd2f332..a5df204e06 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -619,13 +619,13 @@ __LJMP int hlua_lua2arg_check(lua_State *L, int first, struct arg *argp, case ARGT_TIME: if (argp[idx].type != ARGT_SINT) WILL_LJMP(luaL_argerror(L, first + idx, "integer expected")); - argp[idx].type = ARGT_SINT; + argp[idx].type = ARGT_TIME; break; case ARGT_SIZE: if (argp[idx].type != ARGT_SINT) WILL_LJMP(luaL_argerror(L, first + idx, "integer expected")); - argp[idx].type = ARGT_SINT; + argp[idx].type = ARGT_SIZE; break; case ARGT_FE: