summaryrefslogtreecommitdiff
path: root/deps/g3dlite
diff options
context:
space:
mode:
authorGrimdhex <176165533+Grimdhex@users.noreply.github.com>2025-02-06 14:41:31 +0100
committerGitHub <noreply@github.com>2025-02-06 14:41:31 +0100
commit994eccebdfe72223ac39cc5f3c838eb940f8e2a9 (patch)
treead16b426329e185ed41f3e449fb0bf95b6ff709f /deps/g3dlite
parent1cdc7ce56eda506356825ec39e76780c46657b10 (diff)
chore(Deps/Zlib): move to Cloudflare fork (#21028)
Co-authored-by: Andrew <47818697+Nyeriah@users.noreply.github.com>
Diffstat (limited to 'deps/g3dlite')
-rw-r--r--deps/g3dlite/source/BinaryInput.cpp4
-rw-r--r--deps/g3dlite/source/BinaryOutput.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/deps/g3dlite/source/BinaryInput.cpp b/deps/g3dlite/source/BinaryInput.cpp
index c6eafa5ce0..384c28d29b 100644
--- a/deps/g3dlite/source/BinaryInput.cpp
+++ b/deps/g3dlite/source/BinaryInput.cpp
@@ -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;
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;