Fix 32-bit compilation issues (#1757)

This commit is contained in:
Andrew Gaul 2021-08-31 19:36:02 +09:00 committed by GitHub
parent 48817d849f
commit 57b2e4a4f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -2387,7 +2387,7 @@ int S3fsCurl::RequestPerform(bool dontAddAuthHeaders /*=false*/)
S3FS_PRN_DBG("Body Text: %s", bodydata.str());
// Add jitter to avoid thundering herd.
unsigned int sleep_time = 2 << retry_count;
sleep(sleep_time + random() % sleep_time);
sleep(sleep_time + static_cast<unsigned int>(random()) % sleep_time);
break;
}
default:

View File

@ -232,7 +232,7 @@ struct filepart
void add_etag_list(etaglist_t& list, int partnum = -1)
{
if(-1 == partnum){
partnum = list.size() + 1;
partnum = static_cast<int>(list.size()) + 1;
}
list.push_back(etagpair(NULL, partnum));
petag = &list.back();