summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp6
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;