[cfe-commits] [libcxx] r134843 - /libcxx/trunk/src/locale.cpp

Howard Hinnant hhinnant at apple.com
Sat Jul 9 12:47:01 PDT 2011


Author: hhinnant
Date: Sat Jul  9 14:47:01 2011
New Revision: 134843

URL: http://llvm.org/viewvc/llvm-project?rev=134843&view=rev
Log:
Toralf Niebuhr: This is just a tiny patch fixing some small (probably copy & paste) errors.

Modified:
    libcxx/trunk/src/locale.cpp

Modified: libcxx/trunk/src/locale.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/locale.cpp?rev=134843&r1=134842&r2=134843&view=diff
==============================================================================
--- libcxx/trunk/src/locale.cpp (original)
+++ libcxx/trunk/src/locale.cpp Sat Jul  9 14:47:01 2011
@@ -926,7 +926,7 @@
 #ifndef _LIBCPP_STABLE_APPLE_ABI
         *low = isascii(*low) ? __classic_upper_table()[*low] : *low;
 #else
-        *low = isascii(*low) ? _DefaultRuneLocale.__mapupper[c] : c;
+        *low = isascii(*low) ? _DefaultRuneLocale.__mapupper[*low] : *low;
 #endif
     return low;
 }
@@ -948,7 +948,7 @@
 #ifndef _LIBCPP_STABLE_APPLE_ABI
         *low = isascii(*low) ? __classic_lower_table()[*low] : *low;
 #else
-        *low = isascii(*low) ? _DefaultRuneLocale.__maplower[c] : c;
+        *low = isascii(*low) ? _DefaultRuneLocale.__maplower[*low] : *low;
 #endif
     return low;
 }
@@ -999,7 +999,7 @@
 #endif
 }
 
-#ifndef _LIBCPP_APPLE_STABLE_ABI
+#ifndef _LIBCPP_STABLE_APPLE_ABI
 const int*
 ctype<char>::__classic_lower_table() _NOEXCEPT
 {





More information about the cfe-commits mailing list