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
755e3bf7
You need to sign in or sign up before continuing.
Commit
755e3bf7
authored
Mar 27, 2009
by
zhanyong.wan
Browse files
Fixes MSVC casting warning.
parent
e120fc58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/gtest/internal/gtest-port.h
include/gtest/internal/gtest-port.h
+2
-2
No files found.
include/gtest/internal/gtest-port.h
View file @
755e3bf7
...
...
@@ -791,10 +791,10 @@ inline FILE* fdopen(int fd, const char* mode) {
}
inline
int
fclose
(
FILE
*
fp
)
{
return
::
fclose
(
fp
);
}
inline
int
read
(
int
fd
,
void
*
buf
,
size_
t
count
)
{
inline
int
read
(
int
fd
,
void
*
buf
,
unsigned
in
t
count
)
{
return
static_cast
<
int
>
(
::
read
(
fd
,
buf
,
count
));
}
inline
int
write
(
int
fd
,
const
void
*
buf
,
size_
t
count
)
{
inline
int
write
(
int
fd
,
const
void
*
buf
,
unsigned
in
t
count
)
{
return
static_cast
<
int
>
(
::
write
(
fd
,
buf
,
count
));
}
inline
int
close
(
int
fd
)
{
return
::
close
(
fd
);
}
...
...
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