Skip to content

Commit

Permalink
fix incompatible function pointer types
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozg committed Dec 24, 2024
1 parent 1ca0af2 commit 8eb0b74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ static lua_State *vm_acquire(uv_loop_t* loop) {
static void vm_release(lua_State* L) { lua_close(L); }


static lua_State* luv_thread_acquire_vm(void) {
static lua_State* luv_thread_acquire_vm(uv_loop_t* loop) {
lua_State* L = vm_acquire(NULL); /* create state */
(void)loop;

lua_pushboolean(L, 1);
lua_setglobal(L, "_THREAD");
Expand Down

0 comments on commit 8eb0b74

Please sign in to comment.