OSDN Git Service

2002-03-12 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / config / os / gnu-linux / bits / ctype_noninline.h
index 86a38fa..18324d1 100644 (file)
 
   char
   ctype<char>::do_toupper(char __c) const
-  { return _M_toupper[static_cast<int>(__c)]; }
+  { return _M_toupper[static_cast<unsigned char>(__c)]; }
 
   const char*
   ctype<char>::do_toupper(char* __low, const char* __high) const
   {
     while (__low < __high)
       {
-       *__low = _M_toupper[static_cast<int>(*__low)];
+       *__low = _M_toupper[static_cast<unsigned char>(*__low)];
        ++__low;
       }
     return __high;
 
   char
   ctype<char>::do_tolower(char __c) const
-  { return _M_tolower[static_cast<int>(__c)]; }
+  { return _M_tolower[static_cast<unsigned char>(__c)]; }
 
   const char* 
   ctype<char>::do_tolower(char* __low, const char* __high) const
   {
     while (__low < __high)
       {
-       *__low = _M_tolower[static_cast<int>(*__low)];
+       *__low = _M_tolower[static_cast<unsigned char>(*__low)];
        ++__low;
       }
     return __high;