diff options
author | daquexian <daquexian566@gmail.com> | 2019-05-02 13:47:49 (GMT) |
---|---|---|
committer | daquexian <daquexian566@gmail.com> | 2019-05-02 16:21:44 (GMT) |
commit | ca642a925ee8d631fc5b8def9abbc8cadd18c3c0 (patch) | |
tree | fe89d44acd65ebed23d8106517a99a20900d2bc3 | |
parent | 9997a830ee5589c2da79198bc3b60d1c47e50118 (diff) | |
download | googletest-ca642a925ee8d631fc5b8def9abbc8cadd18c3c0.zip googletest-ca642a925ee8d631fc5b8def9abbc8cadd18c3c0.tar.gz googletest-ca642a925ee8d631fc5b8def9abbc8cadd18c3c0.tar.bz2 |
Fix -Wsign-conversion error by adding static_castrefs/pull/2245/head
-rw-r--r-- | googletest/src/gtest-printers.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/src/gtest-printers.cc b/googletest/src/gtest-printers.cc index a7c5e00..3337be3 100644 --- a/googletest/src/gtest-printers.cc +++ b/googletest/src/gtest-printers.cc @@ -237,7 +237,7 @@ void PrintCharAndCodeTo(Char c, ostream* os) { if (format == kHexEscape || (1 <= c && c <= 9)) { // Do nothing. } else { - *os << ", 0x" << String::FormatHexInt(static_cast<UnsignedChar>(c)); + *os << ", 0x" << String::FormatHexInt(static_cast<int>(c)); } *os << ")"; } |