refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2024-12-22 12:43:11 -06:00
parent b41699af5c
commit 88436c9d1f

View File

@ -106,7 +106,7 @@ ring_buffer_open_file::~ring_buffer_open_file() {
auto ring_buffer_open_file::can_handle_file(std::uint64_t file_size,
std::size_t chunk_size,
std::size_t ring_size) -> bool {
return file_size <= (ring_size * chunk_size);
return file_size <= (static_cast<std::uint64_t>(ring_size) * chunk_size);
}
auto ring_buffer_open_file::close() -> bool {