From 5899a19cd0458cd0b2a8416612625c2ccf40037a Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 27 Oct 2007 09:32:32 +0000 Subject: Small improvement for __isctype(): don't use __mb_sb_limit but hardcode 128 here instead, since default locale never define anything above 127 char. --- include/_ctype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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); } -- cgit v1.1