summaryrefslogtreecommitdiffstats
path: root/libcxx/src
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-07-09 19:47:01 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-07-09 19:47:01 +0000
commit25659e93c755bdb6832ca58e7d4b698df9f2e10f (patch)
tree3b23b959ed3ae52460f91b732a67996e9c3e4aec /libcxx/src
parent533a318c0eb58fb7cf9fa7da13b5119f0edafc9f (diff)
downloadbcm5719-llvm-25659e93c755bdb6832ca58e7d4b698df9f2e10f.tar.gz
bcm5719-llvm-25659e93c755bdb6832ca58e7d4b698df9f2e10f.zip
Toralf Niebuhr: This is just a tiny patch fixing some small (probably copy & paste) errors.
llvm-svn: 134843
Diffstat (limited to 'libcxx/src')
-rw-r--r--libcxx/src/locale.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp
index 561fd62e3b2..7c2a6078010 100644
--- a/libcxx/src/locale.cpp
+++ b/libcxx/src/locale.cpp
@@ -926,7 +926,7 @@ ctype<char>::do_toupper(char_type* low, const char_type* high) const
#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 @@ ctype<char>::do_tolower(char_type* low, const char_type* high) const
#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 @@ ctype<char>::classic_table() _NOEXCEPT
#endif
}
-#ifndef _LIBCPP_APPLE_STABLE_ABI
+#ifndef _LIBCPP_STABLE_APPLE_ABI
const int*
ctype<char>::__classic_lower_table() _NOEXCEPT
{
OpenPOWER on IntegriCloud