mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-22 16:58:55 +00:00
Fix 32-bit compilation issues (#1757)
This commit is contained in:
parent
48817d849f
commit
57b2e4a4f1
@ -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:
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user