From c3d2e912cb71e19988af7a90a6ebf9148ce75cc7 Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 9 Oct 2025 12:33:28 +0200 Subject: [PATCH] fix: use uintptr over usize in locations where applicable --- src/dat/mcx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dat/mcx.c b/src/dat/mcx.c index 6960a00..b6f348b 100644 --- a/src/dat/mcx.c +++ b/src/dat/mcx.c @@ -74,7 +74,7 @@ static int mcx_loadchunk(const u8 *restrict buf, const i32 *restrict table, int /* Moves chunks `src_s` to `src_e` (inclusive) from `src`, back onto `dst`. */ static void mvchunks(u8 *dst, u8 *src, u32 *restrict table, int src_s, int src_e) { assert(src > dst); - usize len = src - dst; // acquire the amount of bytes that we shall move + uintptr len = src - dst; // acquire the amount of bytes that we shall move assert(!(len % SECTOR)); // count how many bytes we need to move, whilst updating location data