mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-20 04:50:52 +08:00
修复编译警告
This commit is contained in:
@@ -122,7 +122,7 @@ HttpFileBody::HttpFileBody(const string &file_path, bool use_mmap) {
|
||||
}
|
||||
|
||||
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;
|
||||
_file_offset = offset;
|
||||
if (_fp && !_map_addr) {
|
||||
|
||||
Reference in New Issue
Block a user