msvcp: Fixed char_traits<char>::to_int_type.
This commit is contained in:
parent
9ccfebd615
commit
43d3148357
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue