From: Stefan Behnel Date: Sat, 9 Mar 2013 19:16:13 +0000 (+0100) Subject: minor cleanups X-Git-Tag: 0.19b1~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=900dfde0db36e50929bab30ff27e3ef62f129e69;p=platform%2Fupstream%2Fpython-cython.git minor cleanups --- diff --git a/Cython/Utility/Overflow.c b/Cython/Utility/Overflow.c index b919d77..922dfb5 100644 --- a/Cython/Utility/Overflow.c +++ b/Cython/Utility/Overflow.c @@ -31,8 +31,8 @@ static int __Pyx_check_twos_complement(void) { } } -#define __PYX_IS_UNSIGNED(type) ((type) -1 > 0) -#define __PYX_SIGN_BIT(type) ((unsigned type) 1 << (sizeof(type) * 8 - 1)) +#define __PYX_IS_UNSIGNED(type) (((type) -1) > 0) +#define __PYX_SIGN_BIT(type) (((unsigned type) 1) << (sizeof(type) * 8 - 1)) #define __PYX_HALF_MAX(type) (((type) 1) << (sizeof(type) * 8 - 2)) #define __PYX_MIN(type) (__PYX_IS_UNSIGNED(type) ? (type) 0 : 0 - __PYX_HALF_MAX(type) - __PYX_HALF_MAX(type)) #define __PYX_MAX(type) (~__PYX_MIN(type))