Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-10-11 20:00:46 +0400
committerHoward Hinnant <hhinnant@apple.com>2011-10-11 20:00:46 +0400
commita33d4bc1ffdfa769549d894ec0607c10179d97d2 (patch)
treea91b4e45c6395a2640348d2a884f5406b7a92b2a /libcxx/include/locale
parent871dff76df3f2c11f7709c0de2cbe7e743ee2bc7 (diff)
Starting on musl port by Arvid Picciani
llvm-svn: 141672
Diffstat (limited to 'libcxx/include/locale')
-rw-r--r--libcxx/include/locale6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/include/locale b/libcxx/include/locale
index 9f9996a01f26..aa99ff7e8580 100644
--- a/libcxx/include/locale
+++ b/libcxx/include/locale
@@ -3696,7 +3696,7 @@ messages<_CharT>::do_open(const basic_string<char>& __nm, const locale&) const
#if _WIN32
return -1;
#else // _WIN32
- catalog __cat = reinterpret_cast<catalog>(catopen(__nm.c_str(), NL_CAT_LOCALE));
+ catalog __cat = (catalog)catopen(__nm.c_str(), NL_CAT_LOCALE);
if (__cat != -1)
__cat = static_cast<catalog>((static_cast<size_t>(__cat) >> 1));
return __cat;
@@ -3717,7 +3717,7 @@ messages<_CharT>::do_get(catalog __c, int __set, int __msgid,
__dflt.c_str() + __dflt.size());
if (__c != -1)
__c <<= 1;
- nl_catd __cat = reinterpret_cast<nl_catd>(__c);
+ nl_catd __cat = (nl_catd)__c;
char* __n = catgets(__cat, __set, __msgid, __ndflt.c_str());
string_type __w;
__widen_from_utf8<sizeof(char_type)*__CHAR_BIT__>()(back_inserter(__w),
@@ -3733,7 +3733,7 @@ messages<_CharT>::do_close(catalog __c) const
#if !_WIN32
if (__c != -1)
__c <<= 1;
- nl_catd __cat = reinterpret_cast<nl_catd>(__c);
+ nl_catd __cat = (nl_catd)__c;
catclose(__cat);
#endif // !_WIN32
}