diff options
author | Dan Albert <danalbert@google.com> | 2014-07-31 21:04:08 +0000 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-07-31 21:04:08 +0000 |
commit | ea32c105a6959a503720e1c5a39e058cadfeef33 (patch) | |
tree | 6f9f5cd150bc73d599618af02a637c75345678d2 /libcxx/src | |
parent | 7d186c015212e63fd443899f085c0fa2d2095bf4 (diff) | |
download | bcm5719-llvm-ea32c105a6959a503720e1c5a39e058cadfeef33.tar.gz bcm5719-llvm-ea32c105a6959a503720e1c5a39e058cadfeef33.zip |
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.
llvm-svn: 214442
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/locale.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp index 148fe42a2f7..e626528fc56 100644 --- a/libcxx/src/locale.cpp +++ b/libcxx/src/locale.cpp @@ -1038,7 +1038,7 @@ ctype<char>::classic_table() _NOEXCEPT #elif defined(_AIX) return (const unsigned int *)__lc_ctype_ptr->obj->mask; #elif defined(__ANDROID__) - return _ctype_ + 1; + return reinterpret_cast<const unsigned char*>(_ctype_) + 1; #else // Platform not supported: abort so the person doing the port knows what to // fix |