summaryrefslogtreecommitdiffstats
path: root/googletest
diff options
context:
space:
mode:
authorgennadiycivil <misterg@google.com>2019-05-03 19:11:29 (GMT)
committergennadiycivil <misterg@google.com>2019-05-03 19:11:30 (GMT)
commitbf3ef5c9b7e56c856384cbdd8a9f0397d562351f (patch)
tree80a2c154ef10c0b81b64f13e290298219790fde3 /googletest
parent63be3dcc245327200ad5d93365a65aaf7f23dd5f (diff)
parentca642a925ee8d631fc5b8def9abbc8cadd18c3c0 (diff)
downloadgoogletest-bf3ef5c9b7e56c856384cbdd8a9f0397d562351f.zip
googletest-bf3ef5c9b7e56c856384cbdd8a9f0397d562351f.tar.gz
googletest-bf3ef5c9b7e56c856384cbdd8a9f0397d562351f.tar.bz2
Merge pull request #2245 from daquexian:fix_wsign_conversion
PiperOrigin-RevId: 246550729
Diffstat (limited to 'googletest')
-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 << ")";
}