summaryrefslogtreecommitdiff
path: root/ctype
diff options
context:
space:
mode:
Diffstat (limited to 'ctype')
-rw-r--r--ctype/ctype-info.c8
-rw-r--r--ctype/ctype.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/ctype/ctype-info.c b/ctype/ctype-info.c
index 61f881bb01..a1054b2d16 100644
--- a/ctype/ctype-info.c
+++ b/ctype/ctype-info.c
@@ -24,8 +24,8 @@ extern const char _nl_C_LC_CTYPE_class[];
extern const char _nl_C_LC_CTYPE_toupper[];
extern const char _nl_C_LC_CTYPE_tolower[];
-#define b(u,x) (((u short int *) _nl_C_LC_CTYPE_##x) + 128);
+#define b(u,x) (((u int *) _nl_C_LC_CTYPE_##x) + 128);
-const unsigned short int *__ctype_b = b(unsigned, class);
-const short int *__ctype_tolower = b(, tolower);
-const short int *__ctype_toupper = b(, toupper);
+const unsigned short int *__ctype_b = b(unsigned short, class);
+const int *__ctype_tolower = b(, tolower);
+const int *__ctype_toupper = b(, toupper);
diff --git a/ctype/ctype.h b/ctype/ctype.h
index f568ff45a8..c9129f08ec 100644
--- a/ctype/ctype.h
+++ b/ctype/ctype.h
@@ -68,12 +68,12 @@ enum
char' value [0,255]; by EOF (-1); or by any `signed char' value
[-128,-1). ANSI requires that the ctype functions work for `unsigned
char' values and for EOF; we also support negative `signed char' values
- for broken old programs. The case conversion arrays are of `short int's
+ for broken old programs. The case conversion arrays are of `int's
rather than `unsigned char's because tolower (EOF) must be EOF, which
doesn't fit into an `unsigned char'. */
extern __const unsigned short int *__ctype_b; /* Characteristics. */
-extern __const short int *__ctype_tolower; /* Case conversions. */
-extern __const short int *__ctype_toupper; /* Case conversions. */
+extern __const int *__ctype_tolower; /* Case conversions. */
+extern __const int *__ctype_toupper; /* Case conversions. */
#define __isctype(c, type) \
(__ctype_b[(int) (c)] & (unsigned short int) type)