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
This commit is contained in:
@@ -124,11 +124,11 @@ inline _LIBCPP_ALWAYS_INLINE int tolower_l(int c, locale_t) {
|
|||||||
return ::tolower(c);
|
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);
|
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);
|
return ::towlower(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user