From 20122d21ee4bb6da04af7ccc9c11c51efa51ff71 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 30 Dec 2017 08:12:38 +0100 Subject: [PATCH] CXX_BUILD buildfix --- libretro-common/audio/audio_mix.c | 2 +- libretro-common/file/nbio/nbio_linux.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro-common/audio/audio_mix.c b/libretro-common/audio/audio_mix.c index 795898c019..55a4c4de30 100644 --- a/libretro-common/audio/audio_mix.c +++ b/libretro-common/audio/audio_mix.c @@ -184,7 +184,7 @@ audio_chunk_t* audio_mix_load_wav_file(const char *path, int sample_rate) goto error; } - if (sample_rate != chunk->rwav->samplerate) + if (sample_rate != (int)chunk->rwav->samplerate) { chunk->resample = true; chunk->ratio = (double)sample_rate / chunk->rwav->samplerate; diff --git a/libretro-common/file/nbio/nbio_linux.c b/libretro-common/file/nbio/nbio_linux.c index 6af68362a6..8ef3f2bacb 100644 --- a/libretro-common/file/nbio/nbio_linux.c +++ b/libretro-common/file/nbio/nbio_linux.c @@ -117,7 +117,7 @@ static void *nbio_linux_open(const char * filename, unsigned mode) return NULL; } - handle = malloc(sizeof(struct nbio_linux_t)); + handle = (struct nbio_linux_t*)malloc(sizeof(struct nbio_linux_t)); handle->fd = fd; handle->ctx = ctx; handle->len = lseek(fd, 0, SEEK_END);