include/__locale: Tweak __tab_.

FIXME: wip! wip!
This commit is contained in:
NAKAMURA Takumi
2011-04-26 13:42:39 +09:00
parent 469d419a17
commit 710f61ba2a

View File

@@ -451,7 +451,7 @@ public:
_LIBCPP_ALWAYS_INLINE _LIBCPP_ALWAYS_INLINE
bool is(mask __m, char_type __c) const bool is(mask __m, char_type __c) const
{ {
return isascii(__c) ? __tab_[__c] & __m : false; return isascii(__c) ? (__tab_ ? __tab_[__c] & __m : isctype(__c, __m)) : false;
} }
_LIBCPP_ALWAYS_INLINE _LIBCPP_ALWAYS_INLINE