summaryrefslogtreecommitdiff
path: root/src/utils/base64.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-30 19:53:58 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-30 19:53:58 +0300
commit12389c8441c748996962412201af9e21d66f9e55 (patch)
treeccfb01e0b4b3c2eda3d6cf55369bae61e98a4486 /src/utils/base64.cpp
parentbbc9697a153b30503d9d12c120505ec81adeacf1 (diff)
downloadmanaverse-12389c8441c748996962412201af9e21d66f9e55.tar.gz
manaverse-12389c8441c748996962412201af9e21d66f9e55.tar.bz2
manaverse-12389c8441c748996962412201af9e21d66f9e55.tar.xz
manaverse-12389c8441c748996962412201af9e21d66f9e55.zip
Fix code style in utils.
Diffstat (limited to 'src/utils/base64.cpp')
-rw-r--r--src/utils/base64.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/utils/base64.cpp b/src/utils/base64.cpp
index bd20496b3..57bc68a7c 100644
--- a/src/utils/base64.cpp
+++ b/src/utils/base64.cpp
@@ -180,7 +180,8 @@ std::string encodeBase64String(std::string value)
int sz = 0;
const unsigned char *const str = reinterpret_cast<unsigned char*>(
const_cast<char*>(value.c_str()));
- unsigned char *const buf = php3_base64_encode(str, value.size(), &sz);
+ unsigned char *const buf = php3_base64_encode(
+ str, static_cast<int>(value.size()), &sz);
if (!buf)
return std::string();
@@ -194,7 +195,8 @@ std::string decodeBase64String(std::string value)
int sz = 0;
const unsigned char *const str = reinterpret_cast<unsigned char*>(
const_cast<char*>(value.c_str()));
- unsigned char *const buf = php3_base64_decode(str, value.size(), &sz);
+ unsigned char *const buf = php3_base64_decode(
+ str, static_cast<int>(value.size()), &sz);
if (buf)
value = std::string(reinterpret_cast<char*>(buf), sz);