diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:48:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:48:01 +0300 |
commit | cd0de3bd2668294ab3174d3b5f032fefc25fa0e8 (patch) | |
tree | 54942df2cad49260ae466c23fc2af4ec64c03dfb /src/utils/base64.cpp | |
parent | 454508376039429ad292de69cd491badda798062 (diff) | |
download | mv-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.tar.gz mv-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.tar.bz2 mv-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.tar.xz mv-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.zip |
Fix code style in utils.
Diffstat (limited to 'src/utils/base64.cpp')
-rw-r--r-- | src/utils/base64.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/base64.cpp b/src/utils/base64.cpp index 57bc68a7c..feed37066 100644 --- a/src/utils/base64.cpp +++ b/src/utils/base64.cpp @@ -48,8 +48,9 @@ unsigned char *php3_base64_encode(const unsigned char *restrict const string, { const unsigned char *current = string; int i = 0; - unsigned char *const result = static_cast<unsigned char *>(calloc( - ((length + 3 - length % 3) * 4 / 3 + 1) * sizeof(unsigned char), 1)); + unsigned char *const result = static_cast<unsigned char *>( + calloc(static_cast<size_t>((length + 3 - length % 3) * 4 / 3 + 1) + * sizeof(unsigned char), 1)); if (!result) return nullptr; |