Skip to content

Commit 36c1d47

Browse files
committed
fix windows compilation error
1 parent 0ba8ce6 commit 36c1d47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/shared/platform/include/platform_api_vmcore.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ os_mprotect(void *addr, size_t size, int prot);
145145
static inline void *
146146
os_mremap_slow(void *old_addr, size_t old_size, size_t new_size)
147147
{
148-
void *new_memory =
149-
os_mmap(NULL, new_size, MMAP_PROT_WRITE | MMAP_PROT_READ, 0, -1);
148+
void *new_memory = os_mmap(NULL, new_size, MMAP_PROT_WRITE | MMAP_PROT_READ,
149+
0, os_get_invalid_handle());
150150
if (!new_memory) {
151151
return NULL;
152152
}

0 commit comments

Comments
 (0)