aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/config
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-02 02:37:44 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-02 02:37:44 +0000
commitb0feba13cfd284abfcb5aa747d1450e4d2191c8c (patch)
tree2ce600f0d1f28002afa90c1114a32a663f50600e /libstdc++-v3/config
parent613a38b00a9ed3972dd30000e1b995e4420bab0d (diff)
2001-11-01 Egor Duda <deo@logos-m.ru>
* config/os/newlib/bits/ctype_noninline.h (ctype<char>::do_toupper(char __c)): Check for proper character class. (ctype<char>::do_tolower(char __c)): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46708 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/config')
-rw-r--r--libstdc++-v3/config/os/newlib/bits/ctype_noninline.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/config/os/newlib/bits/ctype_noninline.h b/libstdc++-v3/config/os/newlib/bits/ctype_noninline.h
index 803e6d43dfc..ae0a6e95c9e 100644
--- a/libstdc++-v3/config/os/newlib/bits/ctype_noninline.h
+++ b/libstdc++-v3/config/os/newlib/bits/ctype_noninline.h
@@ -43,7 +43,7 @@
ctype<char>::do_toupper(char __c) const
{
int __x = __c;
- return (this->is(ctype_base::upper, __c) ? (__x - 'A' + 'a') : __x);
+ return (this->is(ctype_base::lower, __c) ? (__x - 'a' + 'A') : __x);
}
const char*
@@ -61,7 +61,7 @@
ctype<char>::do_tolower(char __c) const
{
int __x = __c;
- return (this->is(ctype_base::lower, __c) ? (__x - 'A' + 'a') : __x);
+ return (this->is(ctype_base::upper, __c) ? (__x - 'A' + 'a') : __x);
}
const char*