From d096c64aec8cd7505c0b3b879c20eb41b13ac3da Mon Sep 17 00:00:00 2001 From: danglin Date: Fri, 2 Mar 2001 01:17:23 +0000 Subject: [PATCH] * safe-ctype.h (_sch_test): Cast enum bit to unsigned short int for pcc compatibility. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40175 138bc75d-0d04-0410-961f-82ee72b054a4 --- include/ChangeLog | 5 +++++ include/safe-ctype.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/ChangeLog b/include/ChangeLog index 5326292..390139f 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2001-03-01 John David Anglin + + * safe-ctype.h (_sch_test): Cast enum bit to unsigned short int for pcc + compatibility. + 2000-12-18 Joseph S. Myers * COPYING: Update to current diff --git a/include/safe-ctype.h b/include/safe-ctype.h index d5fc649..ccacda5 100644 --- a/include/safe-ctype.h +++ b/include/safe-ctype.h @@ -1,6 +1,6 @@ /* replacement macros. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2001 Free Software Foundation, Inc. Contributed by Zack Weinberg . This file is part of the libiberty library. @@ -69,7 +69,7 @@ enum { /* Character classification. */ extern const unsigned short _sch_istable[256]; -#define _sch_test(c, bit) (_sch_istable[(c) & 0xff] & (bit)) +#define _sch_test(c, bit) (_sch_istable[(c) & 0xff] & (unsigned short)(bit)) #define ISALPHA(c) _sch_test(c, _sch_isalpha) #define ISALNUM(c) _sch_test(c, _sch_isalnum) -- 2.7.4