From fd4a3f6cef96aba355779dc7e032cc4d2842977b Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 19 Sep 2016 20:42:57 +0000 Subject: [PATCH] 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 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@281936 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/support/xlocale/__posix_l_fallback.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/support/xlocale/__posix_l_fallback.h b/include/support/xlocale/__posix_l_fallback.h index 8bf9567ff..c893a6731 100644 --- a/include/support/xlocale/__posix_l_fallback.h +++ b/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); }