Skip to content

Commit

Permalink
Fix more Linux compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
vsonnier committed Jul 17, 2024
1 parent 5391be8 commit 6d3ea7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Quake/gl_model.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ static void Mod_LoadLighting (qmodel_t *mod, byte *mod_base, lump_t *l)
Mem_Free (data);
return;
}
Con_Printf ("Outdated .lit file (%s should be %u bytes, not %" SDL_PRIs64 "\n", litfilename, 8 + l->filelen * 3, com_filesize);
Con_Printf ("Outdated .lit file (%s should be %u bytes, not %" SDL_PRIs64 ")\n", litfilename, 8 + l->filelen * 3, com_filesize);
}
else
{
Expand Down
5 changes: 3 additions & 2 deletions Quake/wad.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,15 @@ void W_LoadWadFile (void) // johnfitz -- filename is now hard-coded for honesty
{
if (lump_p->filepos > com_filesize || lump_p->size < 0)
{
Con_Printf ("Wad file %s lump \"%.16s\" begins %lli bytes beyond end of wad\n", filename, lump_p->name, lump_p->filepos - com_filesize);
Con_Printf (
"Wad file %s lump \"%.16s\" begins %" SDL_PRIs64 " bytes beyond end of wad\n", filename, lump_p->name, lump_p->filepos - com_filesize);
lump_p->filepos = 0;
lump_p->size = q_max (0, lump_p->size - lump_p->filepos);
}
else
{
Con_Printf (
"Wad file %s lump \"%.16s\" extends %lli bytes beyond end of wad (lump size: %u)\n", filename, lump_p->name,
"Wad file %s lump \"%.16s\" extends %" SDL_PRIs64 " bytes beyond end of wad (lump size: %u)\n", filename, lump_p->name,
(lump_p->filepos + lump_p->size) - com_filesize, lump_p->size);
lump_p->size = q_max (0, lump_p->size - lump_p->filepos);
}
Expand Down

0 comments on commit 6d3ea7d

Please sign in to comment.