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
This commit is contained in:
@@ -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) \
|
||||
|
||||
Reference in New Issue
Block a user