diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-03-27 06:42:14 (GMT) |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-03-27 06:42:14 (GMT) |
commit | 755e3bf78443de1e386b84a56091927bebb877ac (patch) | |
tree | 7af72e643a64e5250a9525fa825e10058ad0bea3 /include/gtest | |
parent | e120fc58906cd7ca6492ba634bb7e082167bd5bf (diff) | |
download | googletest-755e3bf78443de1e386b84a56091927bebb877ac.zip googletest-755e3bf78443de1e386b84a56091927bebb877ac.tar.gz googletest-755e3bf78443de1e386b84a56091927bebb877ac.tar.bz2 |
Fixes MSVC casting warning.
Diffstat (limited to 'include/gtest')
-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 d4ffbb4..d9e7a19 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); } |