diff --git a/code/AssbinExporter.cpp b/code/AssbinExporter.cpp index 9240d3739..fcb32c70a 100644 --- a/code/AssbinExporter.cpp +++ b/code/AssbinExporter.cpp @@ -737,7 +737,7 @@ inline size_t WriteArray(IOStream * stream, const T* in, unsigned int size) AssbinChunkWriter uncompressedStream( NULL, 0 ); WriteBinaryScene( &uncompressedStream, pScene ); - uLongf uncompressedSize = uncompressedStream.Tell(); + uLongf uncompressedSize = static_cast(uncompressedStream.Tell()); uLongf compressedSize = (uLongf)(uncompressedStream.Tell() * 1.001 + 12.); uint8_t* compressedBuffer = new uint8_t[ compressedSize ]; diff --git a/code/AssbinLoader.cpp b/code/AssbinLoader.cpp index c4261c4cb..7a17d5ad5 100644 --- a/code/AssbinLoader.cpp +++ b/code/AssbinLoader.cpp @@ -659,7 +659,7 @@ void AssbinImporter::InternReadFile( const std::string& pFile, aiScene* pScene, if (compressed) { uLongf uncompressedSize = Read(stream); - uLongf compressedSize = stream->FileSize() - stream->Tell(); + uLongf compressedSize = static_cast(stream->FileSize() - stream->Tell()); unsigned char * compressedData = new unsigned char[ compressedSize ]; stream->Read( compressedData, 1, compressedSize );