mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 01:08:54 +00:00
Address signedness warning in FdCache::Init
This commit allows GCC 4.8 to compile s3fs withing warnings.
This commit is contained in:
parent
e23ea87953
commit
d475e22774
@ -266,7 +266,7 @@ int PageList::Init(off_t size, bool is_init)
|
||||
{
|
||||
Clear();
|
||||
for(off_t total = 0; total < size; total += FdManager::GetPageSize()){
|
||||
size_t areasize = (total + FdManager::GetPageSize()) < size ? FdManager::GetPageSize() : static_cast<size_t>(size - total);
|
||||
size_t areasize = (total + static_cast<off_t>(FdManager::GetPageSize())) < size ? FdManager::GetPageSize() : static_cast<size_t>(size - total);
|
||||
fdpage* page = new fdpage(total, areasize, is_init);
|
||||
pages.push_back(page);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user