ref: 0ef2ddcb0ad6a3ee61d5a26fafc846ba8cf5e99b
parent: 00311e89f5bc707c333c38b5f1850d2f2a35e076
author: Julian Nechaevsky <[email protected]>
date: Sat May 5 16:58:51 EDT 2018
fix two compiler warnings on x64 build See: https://github.com/JNechaevsky/russian-doom/commit/7a202471d6a9cd350befab9193aca9db53680fff
--- 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));
}