aboutsummaryrefslogtreecommitdiff
path: root/src/luasocket.c
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2018-08-22 17:37:32 -0300
committerDiego Nehab <diego.nehab@gmail.com>2018-08-22 17:37:32 -0300
commit288219fd6b53ce2e709745c9918aa4c4b7f715c9 (patch)
treea41f0afa7e6a336e0e889356071d8428d4056484 /src/luasocket.c
parent648d81281f177f43de3d7b66e5923bdbaaeb25d9 (diff)
downloadluasocket-288219fd6b53ce2e709745c9918aa4c4b7f715c9.tar.gz
luasocket-288219fd6b53ce2e709745c9918aa4c4b7f715c9.tar.bz2
luasocket-288219fd6b53ce2e709745c9918aa4c4b7f715c9.zip
Update to Visual Studio 2017.
Diffstat (limited to '')
-rwxr-xr-x[-rw-r--r--]src/luasocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luasocket.c b/src/luasocket.c
index 7d9c802..d2752a7 100644..100755
--- a/src/luasocket.c
+++ b/src/luasocket.c
@@ -64,7 +64,7 @@ static luaL_Reg func[] = {
64* Skip a few arguments 64* Skip a few arguments
65\*-------------------------------------------------------------------------*/ 65\*-------------------------------------------------------------------------*/
66static int global_skip(lua_State *L) { 66static int global_skip(lua_State *L) {
67 int amount = luaL_checkinteger(L, 1); 67 int amount = (int) luaL_checkinteger(L, 1);
68 int ret = lua_gettop(L) - amount - 1; 68 int ret = lua_gettop(L) - amount - 1;
69 return ret >= 0 ? ret : 0; 69 return ret >= 0 ? ret : 0;
70} 70}