Commit bdd9a629 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

msvcp100: Avoid FALSE:TRUE conditional expressions.

parent 333c7173
...@@ -189,7 +189,7 @@ static MSVCP_bool basic_string_char_inside( ...@@ -189,7 +189,7 @@ static MSVCP_bool basic_string_char_inside(
{ {
char *cstr = basic_string_char_ptr(this); char *cstr = basic_string_char_ptr(this);
return (ptr<cstr || ptr>=cstr+this->size) ? FALSE : TRUE; return ptr>=cstr && ptr<cstr+this->size;
} }
/* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEX_NI@Z */ /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEX_NI@Z */
...@@ -474,7 +474,7 @@ static MSVCP_bool basic_string_wchar_inside( ...@@ -474,7 +474,7 @@ static MSVCP_bool basic_string_wchar_inside(
{ {
wchar_t *cstr = basic_string_wchar_ptr(this); wchar_t *cstr = basic_string_wchar_ptr(this);
return (ptr<cstr || ptr>=cstr+this->size) ? FALSE : TRUE; return ptr>=cstr && ptr<cstr+this->size;
} }
/* ?_Tidy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEX_NI@Z */ /* ?_Tidy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEX_NI@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