Small improvement for __isctype(): don't use __mb_sb_limit but

hardcode 128 here instead, since default locale never define anything
above 127 char.
This commit is contained in:
Andrey A. Chernov 2007-10-27 09:32:32 +00:00
parent 6a564b46b6
commit eb75c0a0d0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173053

View File

@ -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);
}