diff options
Diffstat (limited to 'deps/g3dlite/source/BinaryOutput.cpp')
-rw-r--r-- | deps/g3dlite/source/BinaryOutput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/g3dlite/source/BinaryOutput.cpp b/deps/g3dlite/source/BinaryOutput.cpp index b174751c8c..bb2157a3be 100644 --- a/deps/g3dlite/source/BinaryOutput.cpp +++ b/deps/g3dlite/source/BinaryOutput.cpp @@ -281,7 +281,7 @@ void BinaryOutput::compress(int level) { alwaysAssertM(m_bufferLen < 0xFFFFFFFF, "Compress only works for 32-bit files."); // This is the worst-case size, as mandated by zlib - unsigned long compressedSize = iCeil(m_bufferLen * 1.001) + 12; + uint64_t compressedSize = iCeil(m_bufferLen * 1.001) + 12; // Save the old buffer and reallocate to the worst-case size const uint8* src = m_buffer; |