summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2001-03-02 02:12:03 +0000
committerDJ Delorie <dj@delorie.com>2001-03-02 02:12:03 +0000
commit44b1737ea558bc3ef27d9b643d8788b7eb45d4e9 (patch)
treebb1a677c5dac3f98f2ec3a8d8dcc5aa6966269fd
parent3f2a1387861b631a21f26d3b451e7fb5537f0ec6 (diff)
downloadgdb-44b1737ea558bc3ef27d9b643d8788b7eb45d4e9.tar.gz
merge from gcc
-rw-r--r--include/ChangeLog5
-rw-r--r--include/safe-ctype.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 11eacd9b28e..8eb61e64a1c 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.
+
2001-02-18 lars brinkhoff <lars@nocrew.org>
* dis-asm.h: Add PDP-11 target.
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)