Explorar o código

Add cast to avoid warning

bel %!s(int64=8) %!d(string=hai) anos
pai
achega
54ddf5f5cb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/mod_lua.inl

+ 1 - 1
src/mod_lua.inl

@@ -289,7 +289,7 @@ lsp_connect(lua_State *L)
 			return luaL_error(L, ebuf);
 		} else {
 			lua_newtable(L);
-			reg_lstring(L, "sock", &sock, sizeof(SOCKET));
+			reg_lstring(L, "sock", (const char*)&sock, sizeof(SOCKET));
 			reg_string(L, "host", lua_tostring(L, -4));
 			luaL_getmetatable(L, LUASOCKET);
 			lua_setmetatable(L, -2);