diff options
Diffstat (limited to 'ctype')
-rw-r--r-- | ctype/ctype.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctype/ctype.h b/ctype/ctype.h index c9129f08ec..025373c381 100644 --- a/ctype/ctype.h +++ b/ctype/ctype.h @@ -39,7 +39,7 @@ __BEGIN_DECLS #if __BYTE_ORDER == __BIG_ENDIAN #define _ISbit(bit) (1 << bit) #else /* __BYTE_ORDER == __LITTLE_ENDIAN */ -#define _ISbit(bit) ((1 << bit) << (bit < 8 ? 8 : -8)) +#define _ISbit(bit) (bit < 8 ? ((1 << bit) << 8) : ((1 << bit) >> 8)) #endif enum |