mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(CXX_BUILD) buildfixes
This commit is contained in:
parent
4e398e7992
commit
f4eaa2296a
@ -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;
|
||||
|
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user