make getPageSize return ux

This commit is contained in:
dzaima 2024-08-27 20:20:34 +03:00
parent 559ccae9cc
commit 0106f04495
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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