ref: 1f7fa57972cee8eb5a8939919f4eedfadae03aac
parent: 80ed045444ad3d53edd44eefd75e80d263ae0387
parent: ce318ac2182e6ef78b642dbbdd55e9ed2c16837f
author: Fabian Greffrath <fabian@greffrath.com>
date: Sun May 6 09:44:50 EDT 2018
Merge branch 'master' of https://github.com/chocolate-doom/chocolate-doom
--- a/src/heretic/p_saveg.c
+++ b/src/heretic/p_saveg.c
@@ -123,7 +123,7 @@
void SV_WritePtr(void *ptr)
{
- long val = (long) ptr;
+ long val = (long)(intptr_t) ptr;
SV_WriteLong(val & 0xffffffff);
}
--- a/src/hexen/sv_save.c
+++ b/src/hexen/sv_save.c
@@ -3452,6 +3452,6 @@
// nowadays they might be larger. Whatever value we write here isn't
// going to be much use when we reload the game.
- ptr = (long) val;
+ ptr = (long)(intptr_t) val;
SV_WriteLong((unsigned int) (ptr & 0xffffffff));
}