Reverts a compatibility change made to two tests

wctype_t was previously declared as an enum in bionic, preventing direct integer
assignment. This has since been made more like other libc's, so we can revert
this change.

Bug: 14646243
Change-Id: Ie63711b8f6d4f947b8fe3b278f5503495521555d
This commit is contained in:
Dan Albert
2014-05-16 12:28:00 -07:00
parent 9fdc63a61c
commit 2a269419dc
2 changed files with 2 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ int main()
{
wint_t w = 0;
wctrans_t wctr = 0;
wctype_t wct = (wctype_t)0;
wctype_t wct = 0;
static_assert((std::is_same<decltype(iswalnum(w)), int>::value), "");
static_assert((std::is_same<decltype(iswalpha(w)), int>::value), "");
static_assert((std::is_same<decltype(iswblank(w)), int>::value), "");

View File

@@ -92,7 +92,7 @@ int main()
{
std::wint_t w = 0;
std::wctrans_t wctr = 0;
std::wctype_t wct = (std::wctype_t)0;
std::wctype_t wct = 0;
static_assert((std::is_same<decltype(std::iswalnum(w)), int>::value), "");
static_assert((std::is_same<decltype(std::iswalpha(w)), int>::value), "");
static_assert((std::is_same<decltype(std::iswblank(w)), int>::value), "");