Fixed compiler errors and warnings.

This commit is contained in:
Nathan Moinvaziri 2018-10-25 21:36:35 -07:00
parent d45af6d6e9
commit d2dc11ca57
6 changed files with 16 additions and 17 deletions

View file

@ -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);