diff options
author | Caleb Maclennan <caleb@alerque.com> | 2023-11-10 09:12:04 +0300 |
---|---|---|
committer | Caleb Maclennan <caleb@alerque.com> | 2023-11-10 09:12:04 +0300 |
commit | 5c4fc93d5f4137bf4c22ddf1a048c907a4a26727 (patch) | |
tree | a9a68e1f6a9c3bfe2b64fa1c3a4098865b7d3b5d /src/luasocket.c | |
parent | ccef3bc4e2aa6ee5b997a80aabb58f4ff0b0e98f (diff) | |
parent | 43a97b7f0053313b43906371dbdc226271e6c8ab (diff) | |
download | luasocket-hjelmeland-patch-1.tar.gz luasocket-hjelmeland-patch-1.tar.bz2 luasocket-hjelmeland-patch-1.zip |
Merge branch 'master' into hjelmeland-patch-1hjelmeland-patch-1
Diffstat (limited to 'src/luasocket.c')
-rwxr-xr-x[-rw-r--r--] | src/luasocket.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/luasocket.c b/src/luasocket.c index 7d9c802..0fd99f7 100644..100755 --- a/src/luasocket.c +++ b/src/luasocket.c | |||
@@ -12,16 +12,6 @@ | |||
12 | * standard Lua read and write functions. | 12 | * standard Lua read and write functions. |
13 | \*=========================================================================*/ | 13 | \*=========================================================================*/ |
14 | 14 | ||
15 | /*=========================================================================*\ | ||
16 | * Standard include files | ||
17 | \*=========================================================================*/ | ||
18 | #include "lua.h" | ||
19 | #include "lauxlib.h" | ||
20 | #include "compat.h" | ||
21 | |||
22 | /*=========================================================================*\ | ||
23 | * LuaSocket includes | ||
24 | \*=========================================================================*/ | ||
25 | #include "luasocket.h" | 15 | #include "luasocket.h" |
26 | #include "auxiliar.h" | 16 | #include "auxiliar.h" |
27 | #include "except.h" | 17 | #include "except.h" |
@@ -64,7 +54,7 @@ static luaL_Reg func[] = { | |||
64 | * Skip a few arguments | 54 | * Skip a few arguments |
65 | \*-------------------------------------------------------------------------*/ | 55 | \*-------------------------------------------------------------------------*/ |
66 | static int global_skip(lua_State *L) { | 56 | static int global_skip(lua_State *L) { |
67 | int amount = luaL_checkinteger(L, 1); | 57 | int amount = (int) luaL_checkinteger(L, 1); |
68 | int ret = lua_gettop(L) - amount - 1; | 58 | int ret = lua_gettop(L) - amount - 1; |
69 | return ret >= 0 ? ret : 0; | 59 | return ret >= 0 ? ret : 0; |
70 | } | 60 | } |