From ff15bcceae64032bed7d7858530047b16bdee2ee Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 6 Jan 2026 17:18:46 +0300 Subject: [PATCH] nfqws2: fix clang warning --- nfq2/lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nfq2/lua.c b/nfq2/lua.c index 2026920..b1d3c7f 100644 --- a/nfq2/lua.c +++ b/nfq2/lua.c @@ -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);