Ticket #3634: dirty_fix.patch
File dirty_fix.patch, 1.3 KB (added by , 13 years ago) |
---|
-
boost/algorithm/string/detail/case_conv.hpp
old new 37 37 CharT operator ()( CharT Ch ) const 38 38 { 39 39 #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)); 41 41 #else 42 return std::tolower<CharT>( Ch, m_Loc );42 return std::tolower<CharT>(static_cast<unsigned char>(Ch), m_Loc ); 43 43 #endif 44 44 } 45 45 private: … … 57 57 CharT operator ()( CharT Ch ) const 58 58 { 59 59 #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)); 61 61 #else 62 return std::toupper <CharT>( Ch, m_Loc);62 return std::toupper(static_cast<unsigned char>(Ch)); 63 63 #endif 64 64 } 65 65 private: