Fix Apple Clang 14 build errors (issue #588) (#589)

This commit is contained in:
Evgeny Gorodetskiy
2023-02-26 23:49:52 +03:00
committed by GitHub
parent 90d18a2d20
commit 436c237213
2 changed files with 7 additions and 7 deletions

View File

@@ -174,9 +174,9 @@ void EventListener(std::atomic<bool>* quit, Sender<Task> out) {
}
const size_t buffer_size = 100;
std::array<char, buffer_size> buffer; // NOLINT;
int l = read(fileno(stdin), buffer.data(), buffer_size); // NOLINT
for (int i = 0; i < l; ++i) {
std::array<char, buffer_size> buffer; // NOLINT;
size_t l = read(fileno(stdin), buffer.data(), buffer_size); // NOLINT
for (size_t i = 0; i < l; ++i) {
parser.Add(buffer[i]); // NOLINT
}
}