* 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
+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.
+
2001-11-01 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4: Fix spacing.
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*
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*