|
|
@@ -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
|