CXX_BUILD buildfix

This commit is contained in:
twinaphex 2017-12-30 08:12:38 +01:00
parent 794de84961
commit 20122d21ee
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ audio_chunk_t* audio_mix_load_wav_file(const char *path, int sample_rate)
goto error; goto error;
} }
if (sample_rate != chunk->rwav->samplerate) if (sample_rate != (int)chunk->rwav->samplerate)
{ {
chunk->resample = true; chunk->resample = true;
chunk->ratio = (double)sample_rate / chunk->rwav->samplerate; chunk->ratio = (double)sample_rate / chunk->rwav->samplerate;

View File

@ -117,7 +117,7 @@ static void *nbio_linux_open(const char * filename, unsigned mode)
return NULL; return NULL;
} }
handle = malloc(sizeof(struct nbio_linux_t)); handle = (struct nbio_linux_t*)malloc(sizeof(struct nbio_linux_t));
handle->fd = fd; handle->fd = fd;
handle->ctx = ctx; handle->ctx = ctx;
handle->len = lseek(fd, 0, SEEK_END); handle->len = lseek(fd, 0, SEEK_END);