summaryrefslogtreecommitdiff
path: root/src/utils/xml.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/xml.cpp
parentbbc9697a153b30503d9d12c120505ec81adeacf1 (diff)
downloadmanaplus-12389c8441c748996962412201af9e21d66f9e55.tar.gz
manaplus-12389c8441c748996962412201af9e21d66f9e55.tar.bz2
manaplus-12389c8441c748996962412201af9e21d66f9e55.tar.xz
manaplus-12389c8441c748996962412201af9e21d66f9e55.zip
Fix code style in utils.
Diffstat (limited to 'src/utils/xml.cpp')
-rw-r--r--src/utils/xml.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp
index 94fc18f98..3d98fda61 100644
--- a/src/utils/xml.cpp
+++ b/src/utils/xml.cpp
@@ -46,10 +46,10 @@ static void xmlErrorLogger(void *ctx A_UNUSED, const char *msg A_UNUSED, ...)
static void xmlErrorLogger(void *ctx A_UNUSED, const char *msg, ...)
{
- unsigned size = 1024;
- const unsigned msgSize = strlen(msg);
+ size_t size = 1024;
+ const size_t msgSize = strlen(msg);
if (msgSize * 3 > size)
- size = static_cast<unsigned>(msgSize * 3);
+ size = msgSize * 3;
char* buf = new char[size + 1];
va_list ap;