summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1996-03-25 13:35:36 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1996-03-25 13:35:36 +0000
commitbf939705965a09fcb0e8c40de9b8d77a3f6cb19c (patch)
tree05c9b23d44daef392d38e48ded3f0c01255f44a8
parent06b47700ae8998743884ca27bf423d2cd67e4921 (diff)
Notes
-rw-r--r--lib/libc/locale/runetype.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/libc/locale/runetype.c b/lib/libc/locale/runetype.c
index ba128c6b7d55..a9bba8ef2727 100644
--- a/lib/libc/locale/runetype.c
+++ b/lib/libc/locale/runetype.c
@@ -45,18 +45,10 @@ ___runetype(c)
int x;
_RuneRange *rr = &_CurrentRuneLocale->runetype_ext;
_RuneEntry *re = rr->ranges;
-#endif
- if (c == EOF)
- return(0);
- if (c < 0) {
- if (c >= -128) /* signed char */
- return(_CurrentRuneLocale->runetype[(unsigned char)c]);
- else
- return(0);
- }
+ if (c < 0 || c == EOF)
+ return(0L);
-#ifdef XPG4
for (x = 0; x < rr->nranges; ++x, ++re) {
if (c < re->min)
return(0L);