summaryrefslogtreecommitdiffstats
path: root/include/_ctype.h
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2007-10-27 09:32:32 +0000
committerache <ache@FreeBSD.org>2007-10-27 09:32:32 +0000
commit5899a19cd0458cd0b2a8416612625c2ccf40037a (patch)
tree34e8f0e0136076af4ebe33ef9e6f84f0d2457b19 /include/_ctype.h
parent93719028adcc33c0c017cc740790afc39121ae33 (diff)
downloadFreeBSD-src-5899a19cd0458cd0b2a8416612625c2ccf40037a.zip
FreeBSD-src-5899a19cd0458cd0b2a8416612625c2ccf40037a.tar.gz
Small improvement for __isctype(): don't use __mb_sb_limit but
hardcode 128 here instead, since default locale never define anything above 127 char.
Diffstat (limited to 'include/_ctype.h')
-rw-r--r--include/_ctype.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/_ctype.h b/include/_ctype.h
index e27ab24..0076adc 100644
--- a/include/_ctype.h
+++ b/include/_ctype.h
@@ -126,7 +126,7 @@ __sbistype(__ct_rune_t _c, unsigned long _f)
static __inline int
__isctype(__ct_rune_t _c, unsigned long _f)
{
- return (_c < 0 || _c >= __mb_sb_limit) ? 0 :
+ return (_c < 0 || _c >= 128) ? 0 :
!!(_DefaultRuneLocale.__runetype[_c] & _f);
}
OpenPOWER on IntegriCloud