(PS3) Fix two warnings

This commit is contained in:
twinaphex 2016-08-03 16:30:58 +02:00
parent afce6fccc5
commit b64070793a

View File

@ -347,8 +347,8 @@ static bool rpng_save_image(const char *path,
stream_backend->stream_compress_free(stream);
memcpy(deflate_buf + 4, "IDAT", 4);
dword_write_be(deflate_buf + 0, stream_backend->stream_get_total_out(stream));
if (!png_write_idat(file, deflate_buf, stream_backend->stream_get_total_out(stream) + 8))
dword_write_be(deflate_buf + 0, ((uint32_t)stream_backend->stream_get_total_out(stream)));
if (!png_write_idat(file, deflate_buf, ((size_t)stream_backend->stream_get_total_out(stream) + 8)))
GOTO_END_ERROR();
if (!png_write_iend(file))