From cd0de3bd2668294ab3174d3b5f032fefc25fa0e8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 8 May 2014 22:48:01 +0300 Subject: Fix code style in utils. --- src/utils/base64.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/utils/base64.cpp') 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(calloc( - ((length + 3 - length % 3) * 4 / 3 + 1) * sizeof(unsigned char), 1)); + unsigned char *const result = static_cast( + calloc(static_cast((length + 3 - length % 3) * 4 / 3 + 1) + * sizeof(unsigned char), 1)); if (!result) return nullptr; -- cgit v1.2.3-60-g2f50