fix type; fix comment
This commit is contained in:
parent
d6e35ffd83
commit
31726c6554
@ -10,7 +10,7 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||
#endif
|
||||
|
||||
#if defined(MI_MALLOC_OVERRIDE) && defined(_WIN32) && !(defined(MI_SHARED_LIB) && defined(_DLL))
|
||||
#error "It is only possible to override "malloc" on Windows when building as a 64-bit DLL (and linking the C runtime as a DLL)"
|
||||
#error "It is only possible to override "malloc" on Windows when building as a DLL (and linking the C runtime as a DLL)"
|
||||
#endif
|
||||
|
||||
#if defined(MI_MALLOC_OVERRIDE) && !defined(_WIN32)
|
||||
|
2
src/os.c
2
src/os.c
@ -822,7 +822,7 @@ static void mi_os_free_huge_reserved() {
|
||||
*/
|
||||
|
||||
#if !(MI_INTPTR_SIZE >= 8 && (defined(_WIN32) || defined(MI_OS_USE_MMAP)))
|
||||
int mi_reserve_huge_os_pages(size_t pages, size_t max_secs) {
|
||||
int mi_reserve_huge_os_pages(size_t pages, double max_secs) {
|
||||
return -2; // cannot allocate
|
||||
}
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user