diff options
author | Diego Nehab <diego.nehab@gmail.com> | 2018-08-22 17:37:32 -0300 |
---|---|---|
committer | Diego Nehab <diego.nehab@gmail.com> | 2018-08-22 17:37:32 -0300 |
commit | 288219fd6b53ce2e709745c9918aa4c4b7f715c9 (patch) | |
tree | a41f0afa7e6a336e0e889356071d8428d4056484 /src/luasocket.c | |
parent | 648d81281f177f43de3d7b66e5923bdbaaeb25d9 (diff) | |
download | luasocket-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.c | 2 |
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 | \*-------------------------------------------------------------------------*/ |
66 | static int global_skip(lua_State *L) { | 66 | static 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 | } |