diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2020-10-05 14:30:04 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:24 -0400 |
commit | bab308b923f9297e4c4a2f9c12e664d95c710e3f (patch) | |
tree | 66a4ea5f379437c8de54a4b93fec60b3cbeb79fe | |
parent | 7662653b4c122f638b323d667be93ba516cd535d (diff) |
Explicitly convert function pointer to void pointer
-rw-r--r-- | ujit_asm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |