mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 23:19:31 +03:00
fix type; fix comment
This commit is contained in:
parent
d6e35ffd83
commit
31726c6554
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MI_MALLOC_OVERRIDE) && defined(_WIN32) && !(defined(MI_SHARED_LIB) && defined(_DLL))
|
#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
|
#endif
|
||||||
|
|
||||||
#if defined(MI_MALLOC_OVERRIDE) && !defined(_WIN32)
|
#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)))
|
#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
|
return -2; // cannot allocate
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Reference in a new issue