From 31726c6554e6d0fd64411708773a61b15f4932bd Mon Sep 17 00:00:00 2001 From: daan Date: Mon, 2 Sep 2019 10:18:34 -0700 Subject: [PATCH] fix type; fix comment --- src/alloc-override.c | 2 +- src/os.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/alloc-override.c b/src/alloc-override.c index e5eeaab2..002374bb 100644 --- a/src/alloc-override.c +++ b/src/alloc-override.c @@ -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) diff --git a/src/os.c b/src/os.c index cd634869..2b1ed4f4 100644 --- a/src/os.c +++ b/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