From f3e123b30463f7da9bc87e5d43bcf10526bcc12d Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 3 May 2014 12:06:04 -0700 Subject: [PATCH] Use streamsize instead of ssize_t for portability. --- test/gtest-extra-test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/gtest-extra-test.cc b/test/gtest-extra-test.cc index f4de4e4f..d4d38e4b 100644 --- a/test/gtest-extra-test.cc +++ b/test/gtest-extra-test.cc @@ -190,7 +190,7 @@ TEST(FileDescriptorTest, MoveAssignment) { bool IsClosed(int fd) { char buffer; - ssize_t result = read(fd, &buffer, 1); + std::streamsize result = read(fd, &buffer, 1); return result == -1 && errno == EBADF; }