aboutsummaryrefslogtreecommitdiff
path: root/include/safe-ctype.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-03-02 02:12:03 +0000
committerDJ Delorie <dj@redhat.com>2001-03-02 02:12:03 +0000
commitd84829cc7934bd20594d9938adf34fd0636089e1 (patch)
tree37786abd353d5e68ddb3cd48988bdd01d542adee /include/safe-ctype.h
parente2a4c6c1d8490f8b9968ed7a48bea758842f3edb (diff)
downloadfsf-binutils-gdb-d84829cc7934bd20594d9938adf34fd0636089e1.zip
fsf-binutils-gdb-d84829cc7934bd20594d9938adf34fd0636089e1.tar.gz
fsf-binutils-gdb-d84829cc7934bd20594d9938adf34fd0636089e1.tar.bz2
merge from gcc
Diffstat (limited to 'include/safe-ctype.h')
-rw-r--r--include/safe-ctype.h4
1 files changed, 2 insertions, 2 deletions
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 @@
/* <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)