diff options
Diffstat (limited to 'src/doom')
-rw-r--r-- | src/doom/p_maputl.c | 2 | ||||
-rw-r--r-- | src/doom/p_saveg.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/doom/p_maputl.c b/src/doom/p_maputl.c index 098c2c73..6cc35a5a 100644 --- a/src/doom/p_maputl.c +++ b/src/doom/p_maputl.c @@ -846,7 +846,7 @@ static void InterceptsOverrun(int num_intercepts, intercept_t *intercept) InterceptsMemoryOverrun(location, intercept->frac); InterceptsMemoryOverrun(location + 4, intercept->isaline); - InterceptsMemoryOverrun(location + 8, (int) intercept->d.thing); + InterceptsMemoryOverrun(location + 8, (intptr_t) intercept->d.thing); } diff --git a/src/doom/p_saveg.c b/src/doom/p_saveg.c index 6a48271d..5cb81967 100644 --- a/src/doom/p_saveg.c +++ b/src/doom/p_saveg.c @@ -184,12 +184,12 @@ static void saveg_write_pad(void) static void *saveg_readp(void) { - return (void *) saveg_read32(); + return (void *) (intptr_t) saveg_read32(); } static void saveg_writep(void *p) { - saveg_write32((int) p); + saveg_write32((intptr_t) p); } // Enum values are 32-bit integers. |