msvcp100: Avoid FALSE:TRUE conditional expressions.

This commit is contained in:
Michael Stefaniuc 2012-11-14 12:29:59 +01:00 committed by Alexandre Julliard
parent 333c71730d
commit bdd9a6294d
1 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ static MSVCP_bool basic_string_char_inside(
{
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 */
@ -474,7 +474,7 @@ static MSVCP_bool basic_string_wchar_inside(
{
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 */