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:
parent
6a564b46b6
commit
eb75c0a0d0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173053
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user