updated build system
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2024-08-04 19:51:35 -05:00
parent 56bc78f63c
commit 760a1e4322

View File

@ -111,7 +111,7 @@ auto file::read_(unsigned char *data, std::size_t to_read, std::uint64_t offset,
auto after = stream_.tellg(); auto after = stream_.tellg();
if (after >= 0) { if (after >= 0) {
(*total_read) = static_cast<std::size_t>(after - before); (*total_read) = static_cast<std::size_t>(after - before);
} else if (after == -1 && stream_.fail()) { } else if (after == -1 && not stream_.eof()) {
throw std::runtime_error("failed to tellg() after read"); throw std::runtime_error("failed to tellg() after read");
} }
} }