diff options
author | Jérôme Travert <asmodai27@users.noreply.github.com> | 2022-06-26 17:01:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-26 17:01:00 (GMT) |
commit | 5eaa1139038076ed9bc029ab6518844a1b03ea7f (patch) | |
tree | 0504584d4e332d31b68c9194f3e2c2290cc28e0a /googletest/src | |
parent | 72901486ba39f8f4df9d0386b0521b711ef374a2 (diff) | |
download | googletest-5eaa1139038076ed9bc029ab6518844a1b03ea7f.zip googletest-5eaa1139038076ed9bc029ab6518844a1b03ea7f.tar.gz googletest-5eaa1139038076ed9bc029ab6518844a1b03ea7f.tar.bz2 |
Avoid implicit conversion from int to charrefs/pull/3916/head
Diffstat (limited to 'googletest/src')
-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 f3976d2..d475ad3 100644 --- a/googletest/src/gtest-printers.cc +++ b/googletest/src/gtest-printers.cc @@ -315,7 +315,7 @@ void PrintTo(__uint128_t v, ::std::ostream* os) { low = low / 10 + high_mod * 1844674407370955161 + carry / 10; char digit = static_cast<char>(carry % 10); - *--p = '0' + digit; + *--p = static_cast<char>('0' + digit); } *os << p; } |