diff options
author | Abseil Team <absl-team@google.com> | 2019-08-01 02:27:12 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2019-08-01 20:05:49 (GMT) |
commit | b15335dfa7dfc1c9a436374b753720e3a366e4f2 (patch) | |
tree | d14966bf3c18d8b1782add9c0dae698105643004 | |
parent | a3eee98cad958b740c508d1fb0ac98ef7633fbac (diff) | |
download | googletest-b15335dfa7dfc1c9a436374b753720e3a366e4f2.zip googletest-b15335dfa7dfc1c9a436374b753720e3a366e4f2.tar.gz googletest-b15335dfa7dfc1c9a436374b753720e3a366e4f2.tar.bz2 |
Googletest export
Fix signed conversion warning for wchar_t -> wint_t.
Fixes Github issue #2300
PiperOrigin-RevId: 261045497
-rw-r--r-- | googletest/src/gtest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index 7c5b6af..a74041e 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -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 |