diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:47:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:47:30 +0300 |
commit | 64aabf79b5a10bdf8192bb1048804a3e36730905 (patch) | |
tree | ab7f8a82228acd617ec178f04d7ca6bb09f727de /src/resources/mapreader.cpp | |
parent | 3f9d0c023f3d84de0c68dbf9f7c29aa1b0abb9c9 (diff) | |
download | plus-64aabf79b5a10bdf8192bb1048804a3e36730905.tar.gz plus-64aabf79b5a10bdf8192bb1048804a3e36730905.tar.bz2 plus-64aabf79b5a10bdf8192bb1048804a3e36730905.tar.xz plus-64aabf79b5a10bdf8192bb1048804a3e36730905.zip |
Fix code style in resources.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r-- | src/resources/mapreader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index e4c3e6f73..075891764 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -147,7 +147,7 @@ int inflateMemory(unsigned char *restrict const in, return Z_MEM_ERROR; } - strm.next_out = out + bufferSize; + strm.next_out = out + static_cast<size_t>(bufferSize); strm.avail_out = bufferSize; bufferSize *= 2; } @@ -576,8 +576,8 @@ bool MapReader::readBase64Layer(const XmlNodePtrConst childNode, if (!dataChild) return true; - const int len = static_cast<int>(strlen( - reinterpret_cast<const char*>(dataChild->content)) + 1); + const size_t len = strlen( + reinterpret_cast<const char*>(dataChild->content)) + 1; unsigned char *charData = new unsigned char[len + 1]; xmlChar *const xmlChars = xmlNodeGetContent(dataChild); const char *charStart = reinterpret_cast<const char*>(xmlChars); |