Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstien committed Jan 5, 2024
1 parent 0dd26f3 commit 5d3c603
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions src/stunpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 5d3c603

Please sign in to comment.