diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-03-27 06:42:14 +0000 |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-03-27 06:42:14 +0000 |
commit | 755e3bf78443de1e386b84a56091927bebb877ac (patch) | |
tree | 7af72e643a64e5250a9525fa825e10058ad0bea3 | |
parent | e120fc58906cd7ca6492ba634bb7e082167bd5bf (diff) | |
download | googletest-755e3bf78443de1e386b84a56091927bebb877ac.tar.gz googletest-755e3bf78443de1e386b84a56091927bebb877ac.tar.bz2 googletest-755e3bf78443de1e386b84a56091927bebb877ac.zip |
Fixes MSVC casting warning.
-rw-r--r-- | include/gtest/internal/gtest-port.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h index d4ffbb41..d9e7a19a 100644 --- a/include/gtest/internal/gtest-port.h +++ b/include/gtest/internal/gtest-port.h @@ -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 int 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 int count) { return static_cast<int>(::write(fd, buf, count)); } inline int close(int fd) { return ::close(fd); } |