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
61cdca56
Commit
61cdca56
authored
Apr 26, 2019
by
Gennadiy Civil
Browse files
Merge pull request #2241 from ngie-eign:fix-wsign-conversion-fallout
PiperOrigin-RevId: 245430295
parents
84d98653
bd47c09b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
googletest/src/gtest-port.cc
googletest/src/gtest-port.cc
+1
-1
googletest/src/gtest-printers.cc
googletest/src/gtest-printers.cc
+3
-2
No files found.
googletest/src/gtest-port.cc
View file @
61cdca56
...
...
@@ -279,7 +279,7 @@ size_t GetThreadCount() {
#if GTEST_IS_THREADSAFE && GTEST_OS_WINDOWS
void
SleepMilliseconds
(
int
n
)
{
::
Sleep
(
n
);
::
Sleep
(
static_cast
<
DWORD
>
(
n
)
);
}
AutoHandle
::
AutoHandle
()
...
...
googletest/src/gtest-printers.cc
View file @
61cdca56
...
...
@@ -144,7 +144,8 @@ inline bool IsPrintableAscii(wchar_t c) {
// which is the type of c.
template
<
typename
UnsignedChar
,
typename
Char
>
static
CharFormat
PrintAsCharLiteralTo
(
Char
c
,
ostream
*
os
)
{
switch
(
static_cast
<
wchar_t
>
(
c
))
{
wchar_t
w_c
=
static_cast
<
wchar_t
>
(
c
);
switch
(
w_c
)
{
case
L'\0'
:
*
os
<<
"
\\
0"
;
break
;
...
...
@@ -176,7 +177,7 @@ static CharFormat PrintAsCharLiteralTo(Char c, ostream* os) {
*
os
<<
"
\\
v"
;
break
;
default:
if
(
IsPrintableAscii
(
c
))
{
if
(
IsPrintableAscii
(
w_
c
))
{
*
os
<<
static_cast
<
char
>
(
c
);
return
kAsIs
;
}
else
{
...
...
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