Commit d541ed25 by ziyue

修复编译警告

parent 83387737
...@@ -122,7 +122,7 @@ HttpFileBody::HttpFileBody(const string &file_path, bool use_mmap) { ...@@ -122,7 +122,7 @@ HttpFileBody::HttpFileBody(const string &file_path, bool use_mmap) {
} }
void HttpFileBody::setRange(uint64_t offset, uint64_t max_size) { void HttpFileBody::setRange(uint64_t offset, uint64_t max_size) {
CHECK(offset <= _read_to && max_size + offset <= _read_to); CHECK((int64_t)offset <= _read_to && (int64_t)(max_size + offset) <= _read_to);
_read_to = max_size + offset; _read_to = max_size + offset;
_file_offset = offset; _file_offset = offset;
if (_fp && !_map_addr) { if (_fp && !_map_addr) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论