mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
add casts (#562106)
* src/core/xprops.c: add casts (#562106) svn path=/trunk/; revision=4038
This commit is contained in:
parent
4c5f125a6a
commit
cf2206352f
@ -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.
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user