diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-07 16:18:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-07 16:18:13 +0300 |
commit | 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 (patch) | |
tree | 798117abd4dc7e610997d59d530a96ddc1509f53 /src/resources/mapreader.cpp | |
parent | 4429cb14e9e187edef27aba692a4266733f79c17 (diff) | |
download | manaverse-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.gz manaverse-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.bz2 manaverse-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.xz manaverse-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.zip |
Replace most static_cast<Type> to shorter versions from defines.
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 40a64217d..ff0fa6a7d 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -159,7 +159,7 @@ int inflateMemory(unsigned char *restrict const in, return Z_MEM_ERROR; } - strm.next_out = out + static_cast<size_t>(bufferSize); + strm.next_out = out + CAST_SIZE(bufferSize); strm.avail_out = bufferSize; bufferSize *= 2; } @@ -564,7 +564,7 @@ inline static void setTile(Map *const map, break; if (heights && map->getVersion() >= 2) { - heights->setHeight(x, y, static_cast<uint8_t>( + heights->setHeight(x, y, CAST_U8( gid - set->getFirstGid() + 1)); } else @@ -644,7 +644,7 @@ bool MapReader::readBase64Layer(const XmlNodePtrConst childNode, int binLen; unsigned char *binData = php3_base64_decode(charData, - static_cast<int>(strlen(reinterpret_cast<char*>( + CAST_S32(strlen(reinterpret_cast<char*>( charData))), &binLen); delete [] charData; |