mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Use streamsize instead of ssize_t for portability.
This commit is contained in:
parent
cc6a772b89
commit
f3e123b304
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user