diff options
author | John David Anglin <dave@hiauly1.hia.nrc.ca> | 2001-03-02 01:17:23 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2001-03-02 01:17:23 +0000 |
commit | 9bb9ef28342c5995ea9460b31bca707de200506e (patch) | |
tree | a9c7ae3015b8ab306b904544eabd61b76da1bd44 /include | |
parent | 37b8524ce81b644bb78238c3e14327a0eaae1a5b (diff) | |
download | gcc-9bb9ef28342c5995ea9460b31bca707de200506e.tar.gz |
safe-ctype.h (_sch_test): Cast enum bit to unsigned short int for pcc compatibility.
* safe-ctype.h (_sch_test): Cast enum bit to unsigned short int for pcc
compatibility.
From-SVN: r40175
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/safe-ctype.h | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 5326292a144..390139fc8a4 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2001-03-01 John David Anglin <dave@hiauly1.hia.nrc.ca> + + * safe-ctype.h (_sch_test): Cast enum bit to unsigned short int for pcc + compatibility. + 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk> * COPYING: Update to current diff --git a/include/safe-ctype.h b/include/safe-ctype.h index d5fc649051a..ccacda5b31b 100644 --- a/include/safe-ctype.h +++ b/include/safe-ctype.h @@ -1,6 +1,6 @@ /* <ctype.h> replacement macros. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2001 Free Software Foundation, Inc. Contributed by Zack Weinberg <zackw@stanford.edu>. 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) |