mirror of
https://github.com/zlib-ng/minizip-ng
synced 2026-08-25 14:26:08 -04:00
Fixed compiler errors and warnings.
This commit is contained in:
parent
d45af6d6e9
commit
d2dc11ca57
6 changed files with 16 additions and 17 deletions
|
|
@ -213,12 +213,12 @@ void mz_stream_mem_set_buffer(void *stream, void *buf, int32_t size)
|
|||
mem->limit = size;
|
||||
}
|
||||
|
||||
int32_t mz_stream_mem_get_buffer(void *stream, const void **buf)
|
||||
int32_t mz_stream_mem_get_buffer(void *stream, const uint8_t **buf)
|
||||
{
|
||||
return mz_stream_mem_get_buffer_at(stream, 0, buf);
|
||||
}
|
||||
|
||||
int32_t mz_stream_mem_get_buffer_at(void *stream, int64_t position, const void **buf)
|
||||
int32_t mz_stream_mem_get_buffer_at(void *stream, int64_t position, const uint8_t **buf)
|
||||
{
|
||||
mz_stream_mem *mem = (mz_stream_mem *)stream;
|
||||
if (buf == NULL || position < 0 || mem->size < position || mem->buffer == NULL)
|
||||
|
|
@ -227,7 +227,7 @@ int32_t mz_stream_mem_get_buffer_at(void *stream, int64_t position, const void *
|
|||
return MZ_OK;
|
||||
}
|
||||
|
||||
int32_t mz_stream_mem_get_buffer_at_current(void *stream, const void **buf)
|
||||
int32_t mz_stream_mem_get_buffer_at_current(void *stream, const uint8_t **buf)
|
||||
{
|
||||
mz_stream_mem *mem = (mz_stream_mem *)stream;
|
||||
return mz_stream_mem_get_buffer_at(stream, mem->position, buf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue