am 5d14883f: Make Android\'s ctype_base::mask unsigned.

* commit '5d14883f1b1ed0e78e1d1a9026729c41e9a2fc7b':
  Make Android's ctype_base::mask unsigned.
This commit is contained in:
Dan Albert
2014-07-31 22:36:49 +00:00
committed by Android Git Automerger
2 changed files with 2 additions and 2 deletions

View File

@@ -356,7 +356,7 @@ public:
#elif defined(__EMSCRIPTEN__) || defined(__NetBSD__)
typedef unsigned short mask;
#elif defined(__ANDROID__)
typedef char mask;
typedef unsigned char mask;
#endif
static const mask space = _CTYPE_S;
static const mask print = _CTYPE_R;

View File

@@ -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