From d475e227743f34d458aab1434160a3e83cd88308 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Tue, 1 Apr 2014 21:06:03 -0700 Subject: [PATCH] Address signedness warning in FdCache::Init This commit allows GCC 4.8 to compile s3fs withing warnings. --- src/fdcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fdcache.cpp b/src/fdcache.cpp index 9dc52b1..cd4409a 100644 --- a/src/fdcache.cpp +++ b/src/fdcache.cpp @@ -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 - total); + size_t areasize = (total + static_cast(FdManager::GetPageSize())) < size ? FdManager::GetPageSize() : static_cast(size - total); fdpage* page = new fdpage(total, areasize, is_init); pages.push_back(page); }