From 0106f04495971b3fa8bfa2e0db029e34509f625c Mon Sep 17 00:00:00 2001 From: dzaima Date: Tue, 27 Aug 2024 20:20:34 +0300 Subject: [PATCH] make getPageSize return ux --- src/core/mm.c | 2 +- src/vm.c | 2 +- src/vm.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/mm.c b/src/core/mm.c index 32b2ba01..fffd92d3 100644 --- a/src/core/mm.c +++ b/src/core/mm.c @@ -3,7 +3,7 @@ #include "../core.h" -usz getPageSize(void); +ux getPageSize(void); static u64 prepAllocSize(u64 sz) { u64 psz = getPageSize(); u64 minTotPad = ALLOC_PADDING*2 + 128; diff --git a/src/vm.c b/src/vm.c index 1a74ec90..ae8ad10d 100644 --- a/src/vm.c +++ b/src/vm.c @@ -1166,7 +1166,7 @@ B block_decompose(B x) { return m_hvec2(m_i32(1), x); } STATIC_GLOBAL usz pageSizeV; #endif -usz getPageSize() { +ux getPageSize() { #if defined(_WIN32) || defined(_WIN64) #if !NO_MMAP #error "Windows builds must have NO_MMAP=1" diff --git a/src/vm.h b/src/vm.h index fdcbf02b..4bb96f35 100644 --- a/src/vm.h +++ b/src/vm.h @@ -246,7 +246,7 @@ NOINLINE B vm_fmtPoint(B src, B prepend, B path, usz cs, usz ce); // consumes pr NOINLINE void printErrMsg(B msg); NOINLINE void unwindEnv(Env* envNew); // envNew==envStart-1 for emptying the env stack NOINLINE void unwindCompiler(void); // unwind to the env of the invocation of the compiler; UB when not in compiler! -usz getPageSize(void); +ux getPageSize(void);