Author: danalbert Date: Mon Sep 19 15:42:57 2016 New Revision: 281936 URL: http://llvm.org/viewvc/llvm-project?rev=281936&view=rev Log: 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 Modified: libcxx/trunk/include/support/xlocale/__posix_l_fallback.h Modified: libcxx/trunk/include/support/xlocale/__posix_l_fallback.h URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/support/xlocale/__posix_l_fallback.h?rev=281936&r1=281935&r2=281936&view=diff ============================================================================== --- libcxx/trunk/include/support/xlocale/__posix_l_fallback.h (original) +++ libcxx/trunk/include/support/xlocale/__posix_l_fallback.h Mon Sep 19 15:42:57 2016 @@ -124,11 +124,11 @@ inline _LIBCPP_ALWAYS_INLINE int tolower 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); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits