Fix sanitizer errors in posix socket (#2331)
This commit is contained in:
@ -37,7 +37,7 @@ typedef struct AtomicWaitNode {
|
||||
static HashMap *wait_map;
|
||||
|
||||
static uint32
|
||||
wait_address_hash(void *address);
|
||||
wait_address_hash(const void *address);
|
||||
|
||||
static bool
|
||||
wait_address_equal(void *h1, void *h2);
|
||||
@ -174,7 +174,7 @@ shared_memory_set_memory_inst(WASMModuleCommon *module,
|
||||
|
||||
/* Atomics wait && notify APIs */
|
||||
static uint32
|
||||
wait_address_hash(void *address)
|
||||
wait_address_hash(const void *address)
|
||||
{
|
||||
return (uint32)(uintptr_t)address;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user