mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-08 20:56:13 +00:00
Correct RIOT os_mmap size type to size_t (#1002)
Change signature of riot `os_mmap` implementation to match declaration in core/shared/platform/include/platform_api_vmcore.h
This commit is contained in:
parent
4bdeb909df
commit
a22a5da40d
|
@ -44,9 +44,11 @@ os_free(void *ptr)
|
||||||
}
|
}
|
||||||
|
|
||||||
void *
|
void *
|
||||||
os_mmap(void *hint, unsigned int size, int prot, int flags)
|
os_mmap(void *hint, size_t size, int prot, int flags)
|
||||||
{
|
{
|
||||||
return BH_MALLOC(size);
|
if (size > ((unsigned)~0))
|
||||||
|
return NULL;
|
||||||
|
return BH_MALLOC((unsigned)size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue
Block a user