Compare commits

...

1 Commits

Author SHA1 Message Date
c3d2e912cb fix: use uintptr over usize in locations where applicable 2025-10-09 12:33:28 +02:00

View File

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