void read_content(char *buf, size_t size, off_t offset) const
{
- size_t bytes_to_read = std::min(size, content.size() - offset);
+ size_t bytes_to_read = std::min(size, content.size() - (size_t)offset);
std::copy(content.begin() + offset,
content.begin() + offset + bytes_to_read, buf);
}
}
std::vector<char> content(
- std::min(size, inode->content_size() - offset));
+ std::min(size, inode->content_size() - (size_t)offset));
inode->read_content(content.data(), content.size(), offset);
inode->unlock();