From 0c003aecb135b7e419c53c231fc2c25c8f8dfccf Mon Sep 17 00:00:00 2001 From: stilic Date: Wed, 6 May 2026 15:16:27 +0200 Subject: fix 32bit compilation --- src/net.c | 2 +- src/thread.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/net.c b/src/net.c index 98cdf52..5208377 100644 --- a/src/net.c +++ b/src/net.c @@ -197,7 +197,7 @@ int i_ws_write(lua_State* L){ lua_gettable(L, 1); struct net_data* data = lua_touserdata(L, -1); - uint64_t clen; + size_t clen; const char* content = luaL_tolstring(L, 2, &clen); str* send_data = str_init(""); diff --git a/src/thread.c b/src/thread.c index 1e58aef..cd2eb5f 100644 --- a/src/thread.c +++ b/src/thread.c @@ -453,7 +453,8 @@ int _buffer_func_wrapper(lua_State* L){ } int l_buffer_index(lua_State* L){ - uint64_t len, hash; + size_t len; + uint64_t hash; struct thread_buffer *buffer = lua_touserdata(L, 1); const char* str = luaL_tolstring(L, 2, &len); -- cgit v1.2.3