chore(Deps/Zlib): move to Cloudflare fork (#21028)
Co-authored-by: Andrew <47818697+Nyeriah@users.noreply.github.com>
This commit is contained in:
parent
1cdc7ce56e
commit
994eccebdf
33 changed files with 4313 additions and 12888 deletions
4
deps/g3dlite/source/BinaryInput.cpp
vendored
4
deps/g3dlite/source/BinaryInput.cpp
vendored
|
|
@ -89,7 +89,7 @@ BinaryInput::BinaryInput(
|
|||
debugAssert(m_freeBuffer);
|
||||
m_buffer = (uint8*)System::alignedMalloc(m_length, 16);
|
||||
|
||||
unsigned long L = (unsigned long)m_length;
|
||||
uint64_t L = (uint64_t)m_length;
|
||||
// Decompress with zlib
|
||||
int64 result = uncompress(m_buffer, &L, data + 4, (uLong)dataLen - 4);
|
||||
m_length = L;
|
||||
|
|
@ -257,7 +257,7 @@ void BinaryInput::decompress() {
|
|||
debugAssert(isValidHeapPointer(tempBuffer));
|
||||
debugAssert(isValidHeapPointer(m_buffer));
|
||||
|
||||
unsigned long L = (unsigned long)m_length;
|
||||
uint64_t L = (uint64_t)m_length;
|
||||
int64 result = (int64)uncompress(m_buffer, &L, tempBuffer + 4, (uLong)tempLength - 4);
|
||||
m_length = L;
|
||||
m_bufferLength = m_length;
|
||||
|
|
|
|||
2
deps/g3dlite/source/BinaryOutput.cpp
vendored
2
deps/g3dlite/source/BinaryOutput.cpp
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue