Make Android's ctype_base::mask unsigned.
Keeping the regex code sane is much easier if we match the other platforms and use an unsigned mask. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@214442 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6f8821df70
commit
3ab406107d
@ -356,7 +356,7 @@ public:
|
|||||||
#elif defined(__EMSCRIPTEN__) || defined(__NetBSD__)
|
#elif defined(__EMSCRIPTEN__) || defined(__NetBSD__)
|
||||||
typedef unsigned short mask;
|
typedef unsigned short mask;
|
||||||
#elif defined(__ANDROID__)
|
#elif defined(__ANDROID__)
|
||||||
typedef char mask;
|
typedef unsigned char mask;
|
||||||
#endif
|
#endif
|
||||||
static const mask space = _CTYPE_S;
|
static const mask space = _CTYPE_S;
|
||||||
static const mask print = _CTYPE_R;
|
static const mask print = _CTYPE_R;
|
||||||
|
@ -1038,7 +1038,7 @@ ctype<char>::classic_table() _NOEXCEPT
|
|||||||
#elif defined(_AIX)
|
#elif defined(_AIX)
|
||||||
return (const unsigned int *)__lc_ctype_ptr->obj->mask;
|
return (const unsigned int *)__lc_ctype_ptr->obj->mask;
|
||||||
#elif defined(__ANDROID__)
|
#elif defined(__ANDROID__)
|
||||||
return _ctype_ + 1;
|
return reinterpret_cast<const unsigned char*>(_ctype_) + 1;
|
||||||
#else
|
#else
|
||||||
// Platform not supported: abort so the person doing the port knows what to
|
// Platform not supported: abort so the person doing the port knows what to
|
||||||
// fix
|
// fix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user