Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
61cdca56
Commit
61cdca56
authored
Apr 26, 2019
by
Gennadiy Civil
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2241 from ngie-eign:fix-wsign-conversion-fallout
PiperOrigin-RevId: 245430295
parents
84d98653
bd47c09b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
gtest-port.cc
googletest/src/gtest-port.cc
+1
-1
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