fix compiler warning/error "a cast does not yield a lvalue"
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@694 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
8308616779
commit
d48204c9c3
2
bitmap.c
2
bitmap.c
@ -38,7 +38,7 @@
|
||||
#define CVAL2(p, v) { v = (*(p++)) << 8; v |= (*(p++)); }
|
||||
#endif /* L_ENDIAN */
|
||||
#else
|
||||
#define CVAL2(p, v) v = (*(((uint16*)p)++));
|
||||
#define CVAL2(p, v) { v = (*((uint16*)p)); p += 2; }
|
||||
#endif /* NEED_ALIGN */
|
||||
|
||||
#define UNROLL8(exp) { exp exp exp exp exp exp exp exp }
|
||||
|
4
xwin.c
4
xwin.c
@ -252,7 +252,7 @@ translate8to16(uint8 * data, uint8 * out, uint8 * end)
|
||||
uint16 value;
|
||||
|
||||
if (g_arch_match)
|
||||
REPEAT(*(((uint16 *) out)++) = g_colmap[*(data++)];
|
||||
REPEAT(*((uint16*)out) = g_colmap[*(data++)]; out += 2;
|
||||
)
|
||||
else if (g_xserver_be)
|
||||
{
|
||||
@ -308,7 +308,7 @@ translate8to32(uint8 * data, uint8 * out, uint8 * end)
|
||||
uint32 value;
|
||||
|
||||
if (g_arch_match)
|
||||
REPEAT(*(((uint32 *) out)++) = g_colmap[*(data++)];
|
||||
REPEAT(*((uint32 *)out) = g_colmap[*(data++)]; out += 4;
|
||||
)
|
||||
else if (g_xserver_be)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user