1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Explicitly convert function pointer to void pointer

This commit is contained in:
Alan Wu 2020-10-05 14:30:04 -04:00
parent 7662653b4c
commit bab308b923

View file

@ -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,