summaryrefslogtreecommitdiffstats
path: root/googletest/src/gtest-printers.cc
diff options
context:
space:
mode:
authordaquexian <daquexian566@gmail.com>2019-05-02 13:47:49 (GMT)
committerdaquexian <daquexian566@gmail.com>2019-05-02 16:21:44 (GMT)
commitca642a925ee8d631fc5b8def9abbc8cadd18c3c0 (patch)
treefe89d44acd65ebed23d8106517a99a20900d2bc3 /googletest/src/gtest-printers.cc
parent9997a830ee5589c2da79198bc3b60d1c47e50118 (diff)
downloadgoogletest-ca642a925ee8d631fc5b8def9abbc8cadd18c3c0.zip
googletest-ca642a925ee8d631fc5b8def9abbc8cadd18c3c0.tar.gz
googletest-ca642a925ee8d631fc5b8def9abbc8cadd18c3c0.tar.bz2
Fix -Wsign-conversion error by adding static_castrefs/pull/2245/head
Diffstat (limited to 'googletest/src/gtest-printers.cc')
-rw-r--r--googletest/src/gtest-printers.cc2
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 << ")";
}