Commit b15335df authored by Abseil Team's avatar Abseil Team Committed by Gennadiy Civil
Browse files

Googletest export

Fix signed conversion warning for wchar_t -> wint_t.
Fixes Github issue #2300

PiperOrigin-RevId: 261045497
parent a3eee98c
...@@ -1949,8 +1949,8 @@ bool String::CaseInsensitiveWideCStringEquals(const wchar_t* lhs, ...@@ -1949,8 +1949,8 @@ bool String::CaseInsensitiveWideCStringEquals(const wchar_t* lhs,
// Other unknown OSes may not define it either. // Other unknown OSes may not define it either.
wint_t left, right; wint_t left, right;
do { do {
left = towlower(*lhs++); left = towlower(static_cast<wint_t>(*lhs++));
right = towlower(*rhs++); right = towlower(static_cast<wint_t>(*rhs++));
} while (left && left == right); } while (left && left == right);
return left == right; return left == right;
#endif // OS selector #endif // OS selector
......
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