Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-14 06:13:09 +00:00

nfqws2: fix clang warning

This commit is contained in:
bol-van
2026-01-06 17:18:46 +03:00
parent 61b20f86a7
commit ff15bcceae

View File

@@ -2681,7 +2681,7 @@ static int luacall_gunzip_inflate(lua_State *L)
size = bufsize - uzs->zs.avail_out;
} while (r == Z_OK && uzs->zs.avail_in);
lua_pushlstring(L, buf, size);
lua_pushlstring(L, (const char*)buf, size);
lua_pushboolean(L, r==Z_STREAM_END);
end:
free(buf);
@@ -2785,7 +2785,7 @@ static int luacall_gzip_deflate(lua_State *L)
size = bufsize - uzs->zs.avail_out;
} while (r == Z_OK && (uzs->zs.avail_in || !uzs->zs.avail_out));
lua_pushlstring(L, buf, size);
lua_pushlstring(L, (const char*)buf, size);
lua_pushboolean(L, r==Z_STREAM_END);
end:
free(buf);