mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-05-17 07:21:43 +00:00
refactor: fix x64 compilation for ObjLoading
This commit is contained in:
@@ -17,9 +17,9 @@ size_t XChunkProcessorDeflate::Process(int streamNumber, const uint8_t* input, c
|
||||
if (ret != Z_OK)
|
||||
throw XChunkException("Initializing deflate failed.");
|
||||
|
||||
stream.avail_in = inputLength;
|
||||
stream.avail_in = static_cast<unsigned>(inputLength);
|
||||
stream.next_in = input;
|
||||
stream.avail_out = outputBufferSize;
|
||||
stream.avail_out = static_cast<unsigned>(outputBufferSize);
|
||||
stream.next_out = output;
|
||||
|
||||
ret = deflate(&stream, Z_FINISH);
|
||||
|
||||
@@ -16,9 +16,9 @@ size_t XChunkProcessorInflate::Process(int streamNumber, const uint8_t* input, c
|
||||
if (ret != Z_OK)
|
||||
throw XChunkException("Initializing inflate failed.");
|
||||
|
||||
stream.avail_in = inputLength;
|
||||
stream.avail_in = static_cast<unsigned>(inputLength);
|
||||
stream.next_in = input;
|
||||
stream.avail_out = outputBufferSize;
|
||||
stream.avail_out = static_cast<unsigned>(outputBufferSize);
|
||||
stream.next_out = output;
|
||||
|
||||
ret = inflate(&stream, Z_FULL_FLUSH);
|
||||
|
||||
Reference in New Issue
Block a user