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
This commit is contained in:
parent
37b8524ce8
commit
9bb9ef2834
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue