Use streamsize instead of ssize_t for portability.

This commit is contained in:
Victor Zverovich 2014-05-03 12:06:04 -07:00
parent cc6a772b89
commit f3e123b304

View File

@ -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;
}