mirror of
https://github.com/fmtlib/fmt.git
synced 2025-04-18 11:42:22 +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) {
|
bool IsClosed(int fd) {
|
||||||
char buffer;
|
char buffer;
|
||||||
ssize_t result = read(fd, &buffer, 1);
|
std::streamsize result = read(fd, &buffer, 1);
|
||||||
return result == -1 && errno == EBADF;
|
return result == -1 && errno == EBADF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user