mirror of
https://github.com/brunoos/luasec.git
synced 2025-02-13 15:32:48 +01:00
Merge pull request #156 from Petr-kk/upstream
SOCKET_INVALID pushed as integer, not as number
This commit is contained in:
commit
22eadbd20e
@ -941,7 +941,7 @@ LSEC_API int luaopen_ssl_core(lua_State *L)
|
|||||||
luaL_newlib(L, funcs);
|
luaL_newlib(L, funcs);
|
||||||
|
|
||||||
lua_pushstring(L, "SOCKET_INVALID");
|
lua_pushstring(L, "SOCKET_INVALID");
|
||||||
lua_pushnumber(L, SOCKET_INVALID);
|
lua_pushinteger(L, SOCKET_INVALID);
|
||||||
lua_rawset(L, -3);
|
lua_rawset(L, -3);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user