From bec52859ccfb42c29be970c9e0e67145517ed0cd Mon Sep 17 00:00:00 2001 From: meep-eep Date: Fri, 17 Jun 2005 17:31:17 +0000 Subject: [PATCH] Removed warnings on systems with 64 bits pointers. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1831 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/graphics/sdl/2xscalers.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sc2/src/sc2code/libs/graphics/sdl/2xscalers.c b/sc2/src/sc2code/libs/graphics/sdl/2xscalers.c index 54e35f123..78c396fc2 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/2xscalers.c +++ b/sc2/src/sc2code/libs/graphics/sdl/2xscalers.c @@ -54,13 +54,13 @@ typedef union // several times // # define GET_PIX_24BIT(p) \ - ( ((Uint32)(p)) & 3 ? \ + ( ((intptr_t)(p)) & 3 ? \ (*(Uint32 *)((Uint8 *)(p) - 1) & 0x00ffffff) : \ (*(Uint32 *)(p) >> 8) \ ) # define SET_PIX_24BIT(p, c) \ - ( ((Uint32)(p)) & 3 ? \ + ( ((intptr_t)(p)) & 3 ? \ ( *(Uint32 *)((Uint8 *)(p) - 1) = \ (*(Uint32 *)((Uint8 *)(p) - 1) & 0xff000000) | \ ((c) & 0x00ffffff) \ @@ -75,13 +75,13 @@ typedef union // Same page-safety assumption applies as for big-endian // # define GET_PIX_24BIT(p) \ - ( ((Uint32)(p)) & 3 ? \ + ( ((intptr_t)(p)) & 3 ? \ (*(Uint32 *)((Uint8 *)(p) - 1) >> 8) : \ (*(Uint32 *)(p) & 0x00ffffff) \ ) # define SET_PIX_24BIT(p, c) \ - ( ((Uint32)(p)) & 3 ? \ + ( ((intptr_t)(p)) & 3 ? \ ( *(Uint32 *)((Uint8 *)(p) - 1) = \ (*(Uint32 *)((Uint8 *)(p) - 1) & 0x000000ff) | \ ((c) << 8) \