Fix implicit narrowing conversions (#1672)

These do not appear to be problematic but rather just clean up warnings.
Found via clang -Wshorten-64-to-32.
This commit is contained in:
Andrew Gaul
2021-06-13 12:50:07 +09:00
committed by GitHub
parent c2c56d0263
commit 600cee118d
13 changed files with 59 additions and 62 deletions

View File

@ -258,9 +258,9 @@ std::string prepare_url(const char* url)
std::string path;
std::string url_str = std::string(url);
std::string token = std::string("/") + bucket;
int bucket_pos;
int bucket_length = token.size();
int uri_length = 0;
size_t bucket_pos;
size_t bucket_length = token.size();
size_t uri_length = 0;
if(!strncasecmp(url_str.c_str(), "https://", 8)){
uri_length = 8;