msvcp: Fixed char_traits<char>::to_int_type.

This commit is contained in:
Andrey Zhezherun 2013-10-31 23:35:21 +00:00 committed by Alexandre Julliard
parent 9ccfebd615
commit 43d3148357
2 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ char CDECL MSVCP_char_traits_char_to_char_type(const int *i)
/* ?to_int_type@?$char_traits@D@std@@SAHAEBD@Z */
int CDECL MSVCP_char_traits_char_to_int_type(const char *ch)
{
return (int)*ch;
return (unsigned char)*ch;
}
/* ?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z */

View File

@ -162,7 +162,7 @@ char CDECL MSVCP_char_traits_char_to_char_type(const int *i)
/* ?to_int_type@?$char_traits@D@std@@SAHAEBD@Z */
int CDECL MSVCP_char_traits_char_to_int_type(const char *ch)
{
return (int)*ch;
return (unsigned char)*ch;
}
/* ?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z */