Fixed build warnings on MSVC14 x64 in the AssBin sources.

This commit is contained in:
Jared Mulconry
2016-11-19 00:39:11 +11:00
parent 6ba2dc4db3
commit a2dadbbe52
2 changed files with 2 additions and 2 deletions

View File

@@ -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<uLongf>(uncompressedStream.Tell());
uLongf compressedSize = (uLongf)(uncompressedStream.Tell() * 1.001 + 12.);
uint8_t* compressedBuffer = new uint8_t[ compressedSize ];