Commit 287c1db7 authored by Eugene Kosov's avatar Eugene Kosov

try to fix Win x86 build

parent 691c691a
......@@ -671,7 +671,7 @@ void log_t::files::open_files(std::vector<std::string> paths)
void log_t::files::read(os_offset_t total_offset, span<byte> buf)
{
auto &file= files[total_offset / file_size];
auto &file= files[static_cast<size_t>(total_offset / file_size)];
const os_offset_t offset= total_offset % file_size;
if (const dberr_t err= file.read(offset, buf))
......@@ -680,7 +680,7 @@ void log_t::files::read(os_offset_t total_offset, span<byte> buf)
void log_t::files::write(os_offset_t total_offset, span<byte> buf)
{
auto &file= files[total_offset / file_size];
auto &file= files[static_cast<size_t>(total_offset / file_size)];
const os_offset_t offset= total_offset % file_size;
if (const dberr_t err= file.write(offset, buf))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment