Migrate from i* signed integer type definitions to s* integer definitions.

The `s*` format is preferred due to it being
This commit is contained in:
2026-01-20 10:26:14 +01:00
parent 1b1e906015
commit aa09b6591f
6 changed files with 29 additions and 29 deletions

View File

@@ -28,12 +28,12 @@ enum mcx_compression {
MCX_COMPRESSION_CUSTOM = 0x7F,
};
/* first 4 bytes is an i32 indicating remaining bytes, the following byte defines the compression scheme */
static int mcx_loadchunk(const u8 *restrict buf, const i32 *restrict table, int idx)
/* first 4 bytes is an s32 indicating remaining bytes, the following byte defines the compression scheme */
static int mcx_loadchunk(const u8 *restrict buf, const s32 *restrict table, int idx)
{
const u8 *chunk = buf + (be32toh(table[idx]) >> 8) * SECTOR;
i32 len;
s32 len;
memcpy(&len, chunk, 4);
len = be32toh(len);
chunk += 4;