diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:48:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:48:11 +0300 |
commit | 767b8400fb086616616a298655f0bc2eaf239256 (patch) | |
tree | 9d82215887c79c596127506f50daf2ed31c23d8c /src/logger.cpp | |
parent | cd0de3bd2668294ab3174d3b5f032fefc25fa0e8 (diff) | |
download | plus-767b8400fb086616616a298655f0bc2eaf239256.tar.gz plus-767b8400fb086616616a298655f0bc2eaf239256.tar.bz2 plus-767b8400fb086616616a298655f0bc2eaf239256.tar.xz plus-767b8400fb086616616a298655f0bc2eaf239256.zip |
Fix code style in other files.
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index 21fea14d7..e6aeb0546 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -146,7 +146,7 @@ void Logger::log(const char *const log_text, ...) if (strlen(log_text) * 3 > size) size = static_cast<unsigned>(strlen(log_text) * 3); - char* buf = new char[size + 1]; + char* buf = new char[static_cast<size_t>(size + 1)]; va_list ap; // Use a temporary buffer to fill in the variables @@ -182,7 +182,7 @@ void Logger::log_r(const char *const log_text, ...) if (strlen(log_text) * 3 > size) size = static_cast<unsigned>(strlen(log_text) * 3); - char* buf = new char[size + 1]; + char* buf = new char[static_cast<size_t>(size + 1)]; va_list ap; // Use a temporary buffer to fill in the variables |