From eb75c0a0d00bd18b1823583247b2f5cd6dcefdc5 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sat, 27 Oct 2007 09:32:32 +0000 Subject: [PATCH] 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(-) diff --git a/include/_ctype.h b/include/_ctype.h index e27ab24f6c1..0076adc7b62 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); }