(CXX_BUILD) buildfixes

This commit is contained in:
twinaphex 2015-09-19 15:33:07 +02:00
parent 4e398e7992
commit f4eaa2296a
2 changed files with 2 additions and 2 deletions

View File

@ -1048,7 +1048,7 @@ bool rpng_load_image_argb(const char *path, uint32_t **data,
bool ret = true;
rpng_t *rpng = NULL;
void *ptr = NULL;
struct nbio_t* handle = (void*)nbio_open(path, NBIO_READ);
struct nbio_t* handle = (struct nbio_t*)nbio_open(path, NBIO_READ);
if (!handle)
goto end;

View File

@ -95,7 +95,7 @@ static bool png_write_ihdr(RFILE *file, const struct png_ihdr *ihdr)
static bool png_write_idat(RFILE *file, const uint8_t *data, size_t size)
{
if (retro_fwrite(file, data, size) != size)
if (retro_fwrite(file, data, size) != (ssize_t)size)
return false;
if (!png_write_crc(file, data + sizeof(uint32_t), size - sizeof(uint32_t)))