Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
1b0cdaae
Commit
1b0cdaae
authored
Jun 05, 2020
by
dmauro
Committed by
vslashg
Jun 10, 2020
Browse files
Googletest export
Add missing static_cast to char32_t printer PiperOrigin-RevId: 314925583
parent
4fe01803
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
googletest/src/gtest-printers.cc
googletest/src/gtest-printers.cc
+2
-1
No files found.
googletest/src/gtest-printers.cc
View file @
1b0cdaae
...
...
@@ -44,6 +44,7 @@
#include "gtest/gtest-printers.h"
#include <stdio.h>
#include <cctype>
#include <cstdint>
#include <cwchar>
#include <ostream> // NOLINT
#include <string>
...
...
@@ -253,7 +254,7 @@ void PrintTo(wchar_t wc, ostream* os) {
void
PrintTo
(
char32_t
c
,
::
std
::
ostream
*
os
)
{
*
os
<<
std
::
hex
<<
"U+"
<<
std
::
uppercase
<<
std
::
setfill
(
'0'
)
<<
std
::
setw
(
4
)
<<
c
;
<<
static_cast
<
uint32_t
>
(
c
)
;
}
// Prints the given array of characters to the ostream. CharType must be either
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment