Skip to content

Commit

Permalink
Fix incorrect print format
Browse files Browse the repository at this point in the history
  • Loading branch information
Toodles2You committed Dec 6, 2024
1 parent 10eeba8 commit d9884c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Quake/wad.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,15 +246,15 @@ static wad_t *W_AddWadFile (const char *name, fshandle_t *fh)
{
if (info->filepos > fh->length || info->size < 0)
{
Con_DWarning ("WAD file %s lump \"%.16s\" begins %i bytes beyond end of WAD\n", name, info->name, info->filepos - fh->length);
Con_DWarning ("WAD file %s lump \"%.16s\" begins %li bytes beyond end of WAD\n", name, info->name, info->filepos - fh->length);

info->filepos = 0;
info->size = q_max (0, info->size - info->filepos);
}
else
{
Con_DWarning (
"WAD file %s lump \"%.16s\" extends %i bytes beyond end of WAD (lump size is %i)\n", name, info->name,
"WAD file %s lump \"%.16s\" extends %li bytes beyond end of WAD (lump size is %i)\n", name, info->name,
(info->filepos + info->size) - fh->length, info->size);

info->size = q_max (0, info->size - info->filepos);
Expand Down

0 comments on commit d9884c9

Please sign in to comment.