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:
parent
7662653b4c
commit
bab308b923
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ uint8_t* alloc_exec_mem(size_t mem_size)
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
// Map the memory as executable
|
// Map the memory as executable
|
||||||
uint8_t* mem_block = (uint8_t*)mmap(
|
uint8_t* mem_block = (uint8_t*)mmap(
|
||||||
&alloc_exec_mem,
|
(void*)&alloc_exec_mem,
|
||||||
mem_size,
|
mem_size,
|
||||||
PROT_READ | PROT_WRITE | PROT_EXEC,
|
PROT_READ | PROT_WRITE | PROT_EXEC,
|
||||||
MAP_PRIVATE | MAP_ANONYMOUS,
|
MAP_PRIVATE | MAP_ANONYMOUS,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue