Commit 43d31483 authored by Andrey Zhezherun's avatar Andrey Zhezherun Committed by Alexandre Julliard

msvcp: Fixed char_traits<char>::to_int_type.

parent 9ccfebd6
...@@ -162,7 +162,7 @@ char CDECL MSVCP_char_traits_char_to_char_type(const int *i) ...@@ -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 */ /* ?to_int_type@?$char_traits@D@std@@SAHAEBD@Z */
int CDECL MSVCP_char_traits_char_to_int_type(const char *ch) 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 */ /* ?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) ...@@ -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 */ /* ?to_int_type@?$char_traits@D@std@@SAHAEBD@Z */
int CDECL MSVCP_char_traits_char_to_int_type(const char *ch) 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 */ /* ?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment