From 9a3c689b8ada2cacd8dbc580ede9860ad2f266d4 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 4 Aug 2015 01:38:34 +0000 Subject: [PATCH] Change char_traits::eof() to return 0xFFFF instead of 0xDFFF. Fixes PR#24342 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@243937 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/string | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/string b/include/string index 5777ee2a..2c677ce4 100644 --- a/include/string +++ b/include/string @@ -742,7 +742,7 @@ struct _LIBCPP_TYPE_VIS_ONLY char_traits static inline _LIBCPP_CONSTEXPR bool eq_int_type(int_type __c1, int_type __c2) _NOEXCEPT {return __c1 == __c2;} static inline _LIBCPP_CONSTEXPR int_type eof() _NOEXCEPT - {return int_type(0xDFFF);} + {return int_type(0xFFFF);} }; inline _LIBCPP_INLINE_VISIBILITY