Googletest export
Fix signed conversion warning for wchar_t -> wint_t. Fixes Github issue #2300 PiperOrigin-RevId: 261045497
This commit is contained in:
parent
a3eee98cad
commit
b15335dfa7
|
@ -1949,8 +1949,8 @@ bool String::CaseInsensitiveWideCStringEquals(const wchar_t* lhs,
|
|||
// Other unknown OSes may not define it either.
|
||||
wint_t left, right;
|
||||
do {
|
||||
left = towlower(*lhs++);
|
||||
right = towlower(*rhs++);
|
||||
left = towlower(static_cast<wint_t>(*lhs++));
|
||||
right = towlower(static_cast<wint_t>(*rhs++));
|
||||
} while (left && left == right);
|
||||
return left == right;
|
||||
#endif // OS selector
|
||||
|
|
Loading…
Reference in New Issue
Block a user