From c137be80df707ffaf71d5d3ed1c38c20fc9b8e9a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 23 Jun 2015 14:20:38 +0100 Subject: Avoid non-portable lua integers. --- src/lua/lua_upstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lua/lua_upstream.c') diff --git a/src/lua/lua_upstream.c b/src/lua/lua_upstream.c index 31ced8103..0b2739903 100644 --- a/src/lua/lua_upstream.c +++ b/src/lua/lua_upstream.c @@ -184,7 +184,7 @@ lua_upstream_list_create (lua_State *L) def = luaL_checkstring (L, 1); if (def) { if (lua_gettop (L) >= 2) { - default_port = luaL_checkinteger (L, 2); + default_port = luaL_checknumber (L, 2); } tokens = g_strsplit_set (def, ",;", 0); -- cgit v1.2.3