From 6685edd3c66d009b4172483051fe6f795cc5df49 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 5 Dec 1998 20:43:57 +0000 Subject: Update. * ctype/ctype.h (_ISbit): Protect use of parameter with * wctype/wctype.h (_ISwbit): Likewise. --- ctype/ctype.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ctype/ctype.h') diff --git a/ctype/ctype.h b/ctype/ctype.h index 37e2cbeb35..5f732d2340 100644 --- a/ctype/ctype.h +++ b/ctype/ctype.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 92, 93, 95, 96, 97 Free Software Foundation, Inc. +/* Copyright (C) 1991, 92, 93, 95, 96, 97, 98 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -39,9 +39,9 @@ __BEGIN_DECLS # include # if __BYTE_ORDER == __BIG_ENDIAN -# define _ISbit(bit) (1 << bit) +# define _ISbit(bit) (1 << (bit)) # else /* __BYTE_ORDER == __LITTLE_ENDIAN */ -# define _ISbit(bit) (bit < 8 ? ((1 << bit) << 8) : ((1 << bit) >> 8)) +# define _ISbit(bit) ((bit) < 8 ? ((1 << (bit)) << 8) : ((1 << (bit)) >> 8)) # endif enum -- cgit 1.4.1