From ed2dd6874a905769c5cfc080333ab0b12f9a9fe8 Mon Sep 17 00:00:00 2001 From: ame Date: Thu, 24 Jul 2025 02:32:37 -0500 Subject: errors and then,, yknow fix them --- src/thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/thread.c') diff --git a/src/thread.c b/src/thread.c index babab52..5aed694 100644 --- a/src/thread.c +++ b/src/thread.c @@ -51,7 +51,7 @@ int l_tlock(lua_State* L){ pthread_mutex_lock(&mutex); pthread_mutex_t* mp = malloc(sizeof * mp); *mp = mutex; - int id = larray_set(&thread_locks, idx, (void*)mp); + larray_set(&thread_locks, idx, (void*)mp); } else { pthread_mutex_t *m = (pthread_mutex_t*)thread_locks->arr[i].value; pthread_mutex_lock(&thread_priority_lock); @@ -417,7 +417,7 @@ void meta_proxy_gen(lua_State* L, struct thread_buffer *buffer, int meta_idx, in lua_pushnil(L); for(; lua_next(L, meta_idx) != 0;){ - int k, v = lua_gettop(L); + int k = lua_gettop(L); k = lua_gettop(L) - 1; char* fn = calloc(128, sizeof * fn); -- cgit v1.2.3