From 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 16:18:13 +0300 Subject: Replace most static_cast to shorter versions from defines. --- src/resources/mapreader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resources/mapreader.cpp') 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(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( + 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(strlen(reinterpret_cast( + CAST_S32(strlen(reinterpret_cast( charData))), &binLen); delete [] charData; -- cgit v1.2.3-70-g09d2