From 5719077b9bc1f88fe7168bb6f209aa816b980b9c Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 25 Mar 1996 13:35:36 +0000 Subject: Remove half-dancing solution for signed chars to help finding POSIXly-incorrect programs. --- lib/libc/locale/runetype.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'lib') diff --git a/lib/libc/locale/runetype.c b/lib/libc/locale/runetype.c index ba128c6..a9bba8e 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); -- cgit v1.1