[libcxx] r243937 - Change char_traits<char16_t>::eof() to return 0xFFFF instead of 0xDFFF. Fixes PR#24342

Marshall Clow mclow.lists at gmail.com
Mon Aug 3 18:38:35 PDT 2015


Author: marshall
Date: Mon Aug  3 20:38:34 2015
New Revision: 243937

URL: http://llvm.org/viewvc/llvm-project?rev=243937&view=rev
Log:
Change char_traits<char16_t>::eof() to return 0xFFFF instead of 0xDFFF. Fixes PR#24342

Modified:
    libcxx/trunk/include/string

Modified: libcxx/trunk/include/string
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/string?rev=243937&r1=243936&r2=243937&view=diff
==============================================================================
--- libcxx/trunk/include/string (original)
+++ libcxx/trunk/include/string Mon Aug  3 20:38:34 2015
@@ -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





More information about the cfe-commits mailing list