From 15942b47f5ad5d4bcc2faf45f9559604b815e8af Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 28 Aug 2025 10:57:00 +0200 Subject: [PATCH] fix: assertion was inverted --- 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 9da057b..de2eef6 100644 --- a/src/dat/mcx.c +++ b/src/dat/mcx.c @@ -14,7 +14,7 @@ static void mvchunks(u8 *restrict buf, u8 *src, u8 *dst, int src_s, int src_e) { assert(src > dst); u32 *table = (u32 *)buf; size_t len = src - dst; // acquire the amount of bytes that we shall move - assert(len % 0x1000); + assert(!(len % 0x1000)); // count how many bytes we need to move, whilst updating location data size_t blen = 0;