Ticket #3634: dirty_fix.patch

File dirty_fix.patch, 1.3 KB (added by Thomas Dorner <td-eclipse@…>, 13 years ago)

unified diff of a dirty quick-fix

  • boost/algorithm/string/detail/case_conv.hpp

    old new  
    3737                CharT operator ()( CharT Ch ) const
    3838                {
    3939                    #if defined(__BORLANDC__) && (__BORLANDC__ >= 0x560) && (__BORLANDC__ <= 0x564) && !defined(_USE_OLD_RW_STL)
    40                         return std::tolower( Ch);
     40                        return std::tolower(static_cast<unsigned char>(Ch));
    4141                    #else
    42                         return std::tolower<CharT>( Ch, m_Loc );
     42                        return std::tolower<CharT>(static_cast<unsigned char>(Ch), m_Loc );
    4343                    #endif
    4444                }
    4545            private:
     
    5757                CharT operator ()( CharT Ch ) const
    5858                {
    5959                    #if defined(__BORLANDC__) && (__BORLANDC__ >= 0x560) && (__BORLANDC__ <= 0x564) && !defined(_USE_OLD_RW_STL)
    60                         return std::toupper( Ch);
     60                        return std::toupper(static_cast<unsigned char>(Ch));
    6161                    #else
    62                         return std::toupper<CharT>( Ch, m_Loc );
     62                        return std::toupper(static_cast<unsigned char>(Ch));
    6363                    #endif
    6464                }
    6565            private: