From 755e3bf78443de1e386b84a56091927bebb877ac Mon Sep 17 00:00:00 2001 From: "zhanyong.wan" Date: Fri, 27 Mar 2009 06:42:14 +0000 Subject: Fixes MSVC casting warning. --- include/gtest/internal/gtest-port.h | 4 ++-- 1 file 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(::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(::write(fd, buf, count)); } inline int close(int fd) { return ::close(fd); } -- cgit v0.12