From 1c29e992b9c7d17a4e0ca2c394fdf605706c961f Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 25 Dec 2021 07:27:29 +0200 Subject: Cleanup Warnings about lost precision. --- src/audio/player.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/audio/player.c') diff --git a/src/audio/player.c b/src/audio/player.c index bf853e3f..de430b17 100644 --- a/src/audio/player.c +++ b/src/audio/player.c @@ -192,7 +192,7 @@ static enum iDecoderStatus decodeVorbis_Decoder_(iDecoder *d) { int error; int consumed; d->vorbis = stb_vorbis_open_pushdata( - constData_Block(input), size_Block(input), &consumed, &error, NULL); + constData_Block(input), (int) size_Block(input), &consumed, &error, NULL); if (!d->vorbis) { return needMoreInput_DecoderStatus; } @@ -225,7 +225,7 @@ static enum iDecoderStatus decodeVorbis_Decoder_(iDecoder *d) { lock_Mutex(&d->input->mtx); d->totalInputSize = size_Block(input); int error = 0; - stb_vorbis *vrb = stb_vorbis_open_memory(constData_Block(input), size_Block(input), + stb_vorbis *vrb = stb_vorbis_open_memory(constData_Block(input), (int) size_Block(input), &error, NULL); if (vrb) { d->totalSamples = stb_vorbis_stream_length_in_samples(vrb); -- cgit v1.2.3