mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-20 18:00:57 +00:00
CXX_BUILD buildfix
This commit is contained in:
parent
794de84961
commit
20122d21ee
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user