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:
Michael Gernoth 2004-05-11 07:34:03 +00:00
parent 8308616779
commit d48204c9c3
2 changed files with 3 additions and 3 deletions

View File

@ -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
View File

@ -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)
{