updated build system
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
This commit is contained in:
parent
56bc78f63c
commit
760a1e4322
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user