aboutsummaryrefslogtreecommitdiff
path: root/src/luasocket.c
diff options
context:
space:
mode:
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}