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:
Karl Fessel 2022-02-09 03:21:54 +01:00 committed by GitHub
parent 4bdeb909df
commit a22a5da40d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,9 +44,11 @@ os_free(void *ptr)
}
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