[Chore](build) add -Wconversion and remove some unused code (#33127)

add -Wconversion and remove some unused code
This commit is contained in:
Pxl
2024-04-03 11:57:41 +08:00
committed by yiguolei
parent 6798a24a27
commit 8fd6d4c41b
68 changed files with 115 additions and 240 deletions

View File

@ -88,7 +88,7 @@ bool url_decode(const std::string& in, std::string* out) {
}
void base64_encode(const std::string& in, std::string* out) {
out->resize(in.length() * (4.0 / 3) + 1);
out->resize(size_t(in.length() * (4.0 / 3) + 1));
auto len = base64_encode(reinterpret_cast<const unsigned char*>(in.c_str()), in.length(),
(unsigned char*)out->c_str());
out->resize(len);