diff options
| author | Dan Albert <danalbert@google.com> | 2016-09-19 20:42:57 +0000 |
|---|---|---|
| committer | Dan Albert <danalbert@google.com> | 2016-09-19 20:42:57 +0000 |
| commit | bc40821ee3687b197d75e10207d109831fdfb624 (patch) | |
| tree | ab3944f030efbea770189ba583658601aca2060d /libcxx/include | |
| parent | 77b0c1adee81f1c456fa392bfa764b6ae1764bd2 (diff) | |
| download | bcm5719-llvm-bc40821ee3687b197d75e10207d109831fdfb624.tar.gz bcm5719-llvm-bc40821ee3687b197d75e10207d109831fdfb624.zip | |
Fix signatures of fallback tow(upper|lower)_l.
Summary:
These functions take and return wint_t, not int:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/towupper.html
Reviewers: mclow.lists, EricWF
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D24743
llvm-svn: 281936
Diffstat (limited to 'libcxx/include')
| -rw-r--r-- | libcxx/include/support/xlocale/__posix_l_fallback.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/support/xlocale/__posix_l_fallback.h b/libcxx/include/support/xlocale/__posix_l_fallback.h index 8bf9567ffc2..c893a67313c 100644 --- a/libcxx/include/support/xlocale/__posix_l_fallback.h +++ b/libcxx/include/support/xlocale/__posix_l_fallback.h @@ -124,11 +124,11 @@ inline _LIBCPP_ALWAYS_INLINE int tolower_l(int c, locale_t) { return ::tolower(c); } -inline _LIBCPP_ALWAYS_INLINE int towupper_l(int c, locale_t) { +inline _LIBCPP_ALWAYS_INLINE wint_t towupper_l(wint_t c, locale_t) { return ::towupper(c); } -inline _LIBCPP_ALWAYS_INLINE int towlower_l(int c, locale_t) { +inline _LIBCPP_ALWAYS_INLINE wint_t towlower_l(wint_t c, locale_t) { return ::towlower(c); } |

