* src/core/xprops.c: add casts (#562106)


svn path=/trunk/; revision=4038
This commit is contained in:
Thomas James Alexander Thurman 2008-11-25 23:18:08 +00:00
parent 4c5f125a6a
commit cf2206352f
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2008-11-26 Thomas Thurman <tthurman@gnome.org>
* src/core/xprops.c: add casts (#562106)
2008-11-25 Thomas Thurman <tthurman@gnome.org> 2008-11-25 Thomas Thurman <tthurman@gnome.org>
* metacity.doap: change to standard description. * metacity.doap: change to standard description.

View File

@ -673,9 +673,9 @@ meta_prop_get_text_property (MetaDisplay *display,
/* From Xmd.h */ /* From Xmd.h */
#ifndef cvtINT32toInt #ifndef cvtINT32toInt
#if SIZEOF_VOID_P == 8 #if SIZEOF_VOID_P == 8
#define cvtINT8toInt(val) (((val) & 0x00000080) ? ((val) | 0xffffffffffffff00) : (val)) #define cvtINT8toInt(val) ((((unsigned int)val) & 0x00000080) ? (((unsigned int)val) | 0xffffffffffffff00) : ((unsigned int)val))
#define cvtINT16toInt(val) (((val) & 0x00008000) ? ((val) | 0xffffffffffff0000) : (val)) #define cvtINT16toInt(val) ((((unsigned int)val) & 0x00008000) ? (((unsigned int)val) | 0xffffffffffff0000) : ((unsigned int)val))
#define cvtINT32toInt(val) (((val) & 0x80000000) ? ((val) | 0xffffffff00000000) : (val)) #define cvtINT32toInt(val) ((((unsigned int)val) & 0x80000000) ? (((unsigned int)val) | 0xffffffff00000000) : ((unsigned int)val))
#define cvtINT8toShort(val) cvtINT8toInt(val) #define cvtINT8toShort(val) cvtINT8toInt(val)
#define cvtINT16toShort(val) cvtINT16toInt(val) #define cvtINT16toShort(val) cvtINT16toInt(val)
#define cvtINT32toShort(val) cvtINT32toInt(val) #define cvtINT32toShort(val) cvtINT32toInt(val)