commit 30b05089f5edc8c7ab4435495efce7fa0bbb40df
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat Feb 17 15:53:50 2018 +0200
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Sat Feb 17 16:04:14 2018 +0200
Fix format string problems in R_DrawPlanes
---
src/doom/r_plane.c | 6 +++---
src/heretic/r_plane.c | 7 ++++---
src/hexen/r_plane.c | 7 ++++---
src/strife/r_plane.c | 6 +++---
4 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/src/doom/r_plane.c b/src/doom/r_plane.c
index ea1611c2..16dde4c2 100644
--- a/src/doom/r_plane.c
+++ b/src/doom/r_plane.c
@@ -368,15 +368,15 @@ void R_DrawPlanes (void)
#ifdef RANGECHECK
if (ds_p - drawsegs > MAXDRAWSEGS)
- I_Error ("R_DrawPlanes: drawsegs overflow (%i)",
+ I_Error ("R_DrawPlanes: drawsegs overflow (%" PRIiPTR ")",
ds_p - drawsegs);
if (lastvisplane - visplanes > MAXVISPLANES)
- I_Error ("R_DrawPlanes: visplane overflow (%i)",
+ I_Error ("R_DrawPlanes: visplane overflow (%" PRIiPTR ")",
lastvisplane - visplanes);
if (lastopening - openings > MAXOPENINGS)
- I_Error ("R_DrawPlanes: opening overflow (%i)",
+ I_Error ("R_DrawPlanes: opening overflow (%" PRIiPTR ")",
lastopening - openings);
#endif
diff --git a/src/heretic/r_plane.c b/src/heretic/r_plane.c
index 88485620..0015e978 100644
--- a/src/heretic/r_plane.c
+++ b/src/heretic/r_plane.c
@@ -386,12 +386,13 @@ void R_DrawPlanes(void)
#ifdef RANGECHECK
if (ds_p - drawsegs > MAXDRAWSEGS)
- I_Error("R_DrawPlanes: drawsegs overflow (%i)", ds_p - drawsegs);
+ I_Error("R_DrawPlanes: drawsegs overflow (%" PRIiPTR ")",
+ ds_p - drawsegs);
if (lastvisplane - visplanes > MAXVISPLANES)
- I_Error("R_DrawPlanes: visplane overflow (%i)",
+ I_Error("R_DrawPlanes: visplane overflow (%" PRIiPTR ")",
lastvisplane - visplanes);
if (lastopening - openings > MAXOPENINGS)
- I_Error("R_DrawPlanes: opening overflow (%i)",
+ I_Error("R_DrawPlanes: opening overflow (%" PRIiPTR ")",
lastopening - openings);
#endif
diff --git a/src/hexen/r_plane.c b/src/hexen/r_plane.c
index d3f36565..8dd34083 100644
--- a/src/hexen/r_plane.c
+++ b/src/hexen/r_plane.c
@@ -390,16 +390,17 @@ void R_DrawPlanes(void)
#ifdef RANGECHECK
if (ds_p - drawsegs > MAXDRAWSEGS)
{
- I_Error("R_DrawPlanes: drawsegs overflow (%i)", ds_p - drawsegs);
+ I_Error("R_DrawPlanes: drawsegs overflow (%" PRIiPTR ")",
+ ds_p - drawsegs);
}
if (lastvisplane - visplanes > MAXVISPLANES)
{
- I_Error("R_DrawPlanes: visplane overflow (%i)",
+ I_Error("R_DrawPlanes: visplane overflow (%" PRIiPTR ")",
lastvisplane - visplanes);
}
if (lastopening - openings > MAXOPENINGS)
{
- I_Error("R_DrawPlanes: opening overflow (%i)",
+ I_Error("R_DrawPlanes: opening overflow (%" PRIiPTR ")",
lastopening - openings);
}
#endif
diff --git a/src/strife/r_plane.c b/src/strife/r_plane.c
index bc164b77..97c0c5fe 100644
--- a/src/strife/r_plane.c
+++ b/src/strife/r_plane.c
@@ -369,15 +369,15 @@ void R_DrawPlanes (void)
#ifdef RANGECHECK
if (ds_p - drawsegs > MAXDRAWSEGS)
- I_Error ("R_DrawPlanes: drawsegs overflow (%i)",
+ I_Error ("R_DrawPlanes: drawsegs overflow (%" PRIiPTR ")",
ds_p - drawsegs);
if (lastvisplane - visplanes > MAXVISPLANES)
- I_Error ("R_DrawPlanes: visplane overflow (%i)",
+ I_Error ("R_DrawPlanes: visplane overflow (%" PRIiPTR ")",
lastvisplane - visplanes);
if (lastopening - openings > MAXOPENINGS)
- I_Error ("R_DrawPlanes: opening overflow (%i)",
+ I_Error ("R_DrawPlanes: opening overflow (%" PRIiPTR ")",
lastopening - openings);
#endif