From bab308b923f9297e4c4a2f9c12e664d95c710e3f Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Mon, 5 Oct 2020 14:30:04 -0400 Subject: [PATCH] Explicitly convert function pointer to void pointer --- ujit_asm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ujit_asm.c b/ujit_asm.c index 0db4a540c7..9ab2f26e19 100644 --- a/ujit_asm.c +++ b/ujit_asm.c @@ -90,7 +90,7 @@ uint8_t* alloc_exec_mem(size_t mem_size) #ifndef _WIN32 // Map the memory as executable uint8_t* mem_block = (uint8_t*)mmap( - &alloc_exec_mem, + (void*)&alloc_exec_mem, mem_size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANONYMOUS,