commit 5ed7e666f29800043e15f7b301dd665e9c40fd39
Merge: 1f7fa579 5bed7c7a
Author: Simon Howard <fraggle+github@gmail.com>
AuthorDate: Fri May 11 23:33:08 2018 -0400
Commit: GitHub <noreply@github.com>
CommitDate: Fri May 11 23:33:08 2018 -0400
Merge pull request #1033 from turol/const
Const correctness
src/heretic/d_main.c | 12 ++++++------
src/heretic/doomdef.h | 10 +++++-----
src/heretic/f_finale.c | 14 +++++++-------
src/heretic/g_game.c | 4 ++--
src/heretic/p_inter.c | 2 +-
src/heretic/p_local.h | 2 +-
src/heretic/p_saveg.c | 2 +-
src/heretic/r_data.c | 4 ++--
src/m_config.c | 4 ++--
src/m_config.h | 4 ++--
10 files changed, 29 insertions(+), 29 deletions(-)
diff --cc src/heretic/p_saveg.c
index 6a61b89b,e07c2047..cf06433f
--- a/src/heretic/p_saveg.c
+++ b/src/heretic/p_saveg.c
@@@ -121,9 -121,9 +121,9 @@@ void SV_WriteLong(unsigned int val
SV_Write(&val, sizeof(int));
}
- void SV_WritePtr(void *ptr)
+ void SV_WritePtr(const void *ptr)
{
- long val = (long) ptr;
+ long val = (long)(intptr_t) ptr;
SV_WriteLong(val & 0xffffffff);
}