summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/wchar.h2
-rw-r--r--include/wctype.h2
-rw-r--r--lib/libc/locale/wctype.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/wchar.h b/include/wchar.h
index bbdcae6..b4f19c7 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -96,7 +96,7 @@ typedef _BSD_SIZE_T_ size_t;
#endif
#ifndef _WCTYPE_T
-typedef long wctype_t;
+typedef unsigned long wctype_t;
#define _WCTYPE_T
#endif
diff --git a/include/wctype.h b/include/wctype.h
index 2dd5e79..81bda6f 100644
--- a/include/wctype.h
+++ b/include/wctype.h
@@ -47,7 +47,7 @@ typedef int wctrans_t;
#endif
#ifndef _WCTYPE_T
-typedef long wctype_t;
+typedef unsigned long wctype_t;
#define _WCTYPE_T
#endif
diff --git a/lib/libc/locale/wctype.c b/lib/libc/locale/wctype.c
index ac8386b..5646de5 100644
--- a/lib/libc/locale/wctype.c
+++ b/lib/libc/locale/wctype.c
@@ -61,7 +61,7 @@ wctype(const char *property)
{ "ideogram", _CTYPE_I }, /* BSD extension */
{ "special", _CTYPE_T }, /* BSD extension */
{ "phonogram", _CTYPE_Q }, /* BSD extension */
- { NULL, 0L }, /* Default */
+ { NULL, 0UL }, /* Default */
};
int i;
OpenPOWER on IntegriCloud