From 6812a5896abf0f78fa45ed14d4b4a7e6f2f4d310 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Mon, 4 May 2015 07:55:15 +0200 Subject: warnings: fix some cast to/from pointer from/to int warnings This fixes the following two warnings cast from pointer to integer of different size cast to pointer from integer of different size by either changing some ints that are supposed to hold pointers to intptr_t type or by intermediate casting to (intptr_t). --- src/doom/p_saveg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/doom/p_saveg.c') 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. -- cgit v1.2.3