summaryrefslogtreecommitdiffstats
path: root/src/Rml.cpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-06-22 01:40:04 +0200
committerLaG1924 <lag1924@gmail.com>2021-06-22 02:20:33 +0200
commit0d2b4783824730ba2208f5caaef27c5c61a56fa5 (patch)
tree3c2e085706f3824aa34d2dce5747c9c86a79723a /src/Rml.cpp
parentAdded Settings UI (diff)
downloadAltCraft-0d2b4783824730ba2208f5caaef27c5c61a56fa5.tar
AltCraft-0d2b4783824730ba2208f5caaef27c5c61a56fa5.tar.gz
AltCraft-0d2b4783824730ba2208f5caaef27c5c61a56fa5.tar.bz2
AltCraft-0d2b4783824730ba2208f5caaef27c5c61a56fa5.tar.lz
AltCraft-0d2b4783824730ba2208f5caaef27c5c61a56fa5.tar.xz
AltCraft-0d2b4783824730ba2208f5caaef27c5c61a56fa5.tar.zst
AltCraft-0d2b4783824730ba2208f5caaef27c5c61a56fa5.zip
Diffstat (limited to 'src/Rml.cpp')
-rw-r--r--src/Rml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Rml.cpp b/src/Rml.cpp
index cbc795f..6ed83c1 100644
--- a/src/Rml.cpp
+++ b/src/Rml.cpp
@@ -189,7 +189,7 @@ void RmlFileInterface::Close(Rml::FileHandle file) {
size_t RmlFileInterface::Read(void* buffer, size_t size, Rml::FileHandle file) {
size_t readed = 0;
- readed = _min(handles[file].assetPtr->data.size() - handles[file].filePos, size);
+ readed = _min((size_t)(handles[file].assetPtr->data.size() - handles[file].filePos), size);
std::memcpy(buffer, handles[file].assetPtr->data.data() + handles[file].filePos, readed);
handles[file].filePos += readed;
return readed;