From 5d3c60390f9f8318c9150134d3c88c9393aeff5b Mon Sep 17 00:00:00 2001 From: Daniel Stien Date: Fri, 5 Jan 2024 15:38:25 +1100 Subject: [PATCH] Fix typos. --- Makefile | 2 +- src/main.c | 2 +- src/stunpack.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index cb6683a..a17437b 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ ifneq (,$(findstring wc,$(firstword $(CC)))) EXESUFFIX = .exe # Detect Mingw compiler else ifneq (,$(findstring mingw,$(firstword $(CC)))) - EXESUFFIX = .exe + EXESUFFIX = .exe # Detect Zig cc for Windows else ifneq (,$(findstring windows,$(CC))) EXESUFFIX = .exe diff --git a/src/main.c b/src/main.c index 9466715..4b8f248 100644 --- a/src/main.c +++ b/src/main.c @@ -136,7 +136,7 @@ void printHelp(char *progName) printf(BANNER); printf(USAGE, progName); - printf(" -g VER game version: \"%s\" (default), \"%s\", \"%s\")\n", + printf(" -g VER game version: \"%s\" (default), \"%s\", \"%s\"\n", stpk_versionStr(STPK_VER_AUTO), stpk_versionStr(STPK_VER_STUNTS10), stpk_versionStr(STPK_VER_STUNTS11) diff --git a/src/stunpack.c b/src/stunpack.c index c9aecb0..9d9c13c 100644 --- a/src/stunpack.c +++ b/src/stunpack.c @@ -191,7 +191,7 @@ uint stpk_decomp(stpk_Context *ctx) // Data left must be checked for BB Stunts 1.0 bit stream detection // heuristics, but it is not an error. SDTITL.PVS in BB Stunts 1.1 - // has 95 byte extra, which is random data that is ignored. + // has 95 bytes extra, which is random data that is ignored. if (retval == STPK_RET_ERR_DATA_LEFT) { retval = STPK_RET_OK; } @@ -458,8 +458,8 @@ uint stpk_decompHuff(stpk_Context *ctx) STPK_VERBOSE1(" %-10s %d\n", "levels", levels); STPK_VERBOSE1(" %-10s %d\n\n", "delta", delta); - if ((levels & STPK_HUFF_LEVELS_MASK) > STPK_HUFF_LEVELS_MAX) { - STPK_ERR("Huffman tree levels greater than %d, got %d\n", STPK_HUFF_LEVELS_MAX, levels & STPK_HUFF_LEVELS_MASK); + if (levels > STPK_HUFF_LEVELS_MAX) { + STPK_ERR("Huffman tree levels greater than %d, got %d\n", STPK_HUFF_LEVELS_MAX, levels); return 1; }